aboutsummaryrefslogtreecommitdiff
path: root/src/test/script_P2SH_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add Dogecoin current fee calculation logic (#1413)Ross Nicoll2018-09-191-2/+2
| | | Introduces 1 COIN/kb fees, rounded up to the next 1 COIN.
* Merge #9281: Refactor: Remove using namespace <xxx> from bench/ & test/ sourcesMarcoFalke2017-01-051-9/+7
|\ | | | | | | 73f4119 Refactoring: Removed using namespace <xxx> from bench/ and test/ source files. (Karl-Johan Alm)
| * Refactoring: Removed using namespace <xxx> from bench/ and test/ source files.Karl-Johan Alm2017-01-021-9/+7
| |
* | Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
|/ | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Rename the remaining main.{h,cpp} to validation.{h,cpp}Matt Corallo2016-12-021-1/+1
|
* Rename to PrecomputedTransactionDataPieter Wuille2016-08-261-2/+2
|
* Precompute sighashesPieter Wuille2016-08-161-2/+4
| | | | Original version by Nicolas Dorier. Precomputing version by Pieter Wuille.
* BIP143: Signing logicPieter Wuille2016-06-221-5/+6
|
* Refactor script validation to observe amountsPieter Wuille2016-06-221-1/+1
| | | | This is a preparation for BIP143 support.
* BIP141: Witness programPieter Wuille2016-06-221-1/+1
|
* wallet_ismine.h → script/ismine.hWladimir J. van der Laan2016-04-181-8/+1
| | | | | | Removes conditional dependency of `src/test` on wallet. Makes multisig and P2SH tests complete without wallet built-in.
* Get rid of inaccurate ScriptSigArgsExpectedPieter Wuille2016-02-011-9/+0
| | | | (cherry picked from commit 52b29dca7670c3f6d2ab918c0fff1d17c4e494ad)
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* Prevector typePieter Wuille2015-11-131-5/+5
|
* Policy: MOVEONLY: Create policy/policy.h with some constantsJorge Timón2015-06-261-0/+1
|
* Merge pull request #5745Wladimir J. van der Laan2015-03-201-1/+1
|\ | | | | | | 50c72f2 [Move Only] Move wallet related things to src/wallet/ (Jonas Schnelli)
| * [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-121-1/+1
| | | | | | | | could once be renamed from /src/wallet to /src/legacywallet.
* | tests: add a BasicTestingSetup and apply to all testsWladimir J. van der Laan2015-03-121-1/+2
|/ | | | | | | | Make sure that chainparams and logging is properly initialized. Doing this for every test may be overkill, but this initialization is so simple that that does not matter. This should fix the travis issues.
* Avoid storing a reference passed to SignatureChecker constructorsPieter Wuille2015-02-021-1/+1
|
* Use separate SignatureChecker for CMutableTransactionPieter Wuille2015-02-021-1/+1
|
* Replace direct use of 0 with SetNull and IsNullWladimir J. van der Laan2015-01-051-1/+1
| | | | | | Replace x=0 with .SetNull(), x==0 with IsNull(), x!=0 with !IsNull(). Replace uses of uint256(0) with uint256().
* Remove references to X11 licenceMichael Ford2014-12-161-1/+1
|
* script: check ScriptError values in script testsCory Fields2014-11-141-6/+13
|
* script: add ToByteVector() for converting anything with begin/endCory Fields2014-10-171-10/+10
| | | | This should move to a util header once their dependencies are cleaned up.
* script: move CScriptID to standard.h and add a ctor for creating them from ↵Cory Fields2014-10-171-10/+10
| | | | | | | | | | | | | | | | CScripts This allows for a reversal of the current behavior. This: CScript foo; CScriptID bar(foo.GetID()); Becomes: CScript foo; CScriptID bar(foo); This way, CScript is no longer dependent on CScriptID or Hash();
* Merge pull request #4834Pieter Wuille2014-10-081-3/+2
|\ | | | | | | | | | | | | | | 7c70438 Get rid of the dummy CCoinsViewCache constructor arg (Pieter Wuille) ed27e53 Add coins_tests with a large randomized CCoinViewCache test. (Pieter Wuille) 058b08c Do not keep fully spent but unwritten CCoins entries cached. (Pieter Wuille) c9d1a81 Get rid of CCoinsView's SetCoins and SetBestBlock. (Pieter Wuille) f28aec0 Use ModifyCoins instead of mutable GetCoins. (Pieter Wuille)
| * Get rid of the dummy CCoinsViewCache constructor argPieter Wuille2014-09-241-1/+1
| |
| * Get rid of CCoinsView's SetCoins and SetBestBlock.Pieter Wuille2014-09-231-2/+1
| | | | | | | | | | | | All direct modifications are now done through ModifyCoins, and BatchWrite is used for pushing batches of queued modifications up, so we don't need the low-level SetCoins and SetBestBlock anymore in the top-level CCoinsView class.
* | Replace SCRIPT_VERIFY_NOCACHE by flag directly to checkerPieter Wuille2014-10-021-2/+2
|/
* Merge pull request #4555Wladimir J. van der Laan2014-09-171-2/+2
|\ | | | | | | | | | | | | 6dcfda2 Don't pass nHashType to EvalScript nor CheckSig (jtimon) 2b23a87 Don't pass nHashType to VerifyScript (jtimon) ce3649fb Remove CScriptCheck::nHashType (was always 0) (jtimon) 358562b Remove unused function main:VerifySignature (jtimon)
| * Don't pass nHashType to VerifyScriptjtimon2014-09-121-1/+1
| |
| * Remove CScriptCheck::nHashType (was always 0)jtimon2014-09-121-1/+1
| |
| * Remove unused function main:VerifySignaturejtimon2014-09-121-1/+1
| |
* | Move CTxDestination from script/script to script/standardPieter Wuille2014-09-161-24/+21
|/
* Rename scriptutils.o to wallet_ismine.ojtimon2014-09-101-1/+1
|
* Move scriptutils.o to walletjtimon2014-09-101-0/+7
|
* Separate script/signjtimon2014-09-081-0/+1
|
* Move CScript class and dependencies to script/scriptjtimon2014-09-081-0/+1
|
* Rename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated includes)jtimon2014-09-081-3/+1
|
* Declare SignatureHash() in script.hjtimon2014-08-011-3/+0
|
* test: Fix warning about integer signedness in P2SH testsWladimir J. van der Laan2014-06-301-1/+1
|
* Relax IsStandard rules for pay-to-script-hash transactionsGavin Andresen2014-06-231-46/+72
| | | | | | | | | | | Relax the AreInputsStandard() tests for P2SH transactions -- allow any Script in a P2SH transaction to be relayed/mined, as long as it has 15 or fewer signature operations. Rationale: https://gist.github.com/gavinandresen/88be40c141bc67acb247 I don't have an easy way to test this, but the code changes are straightforward and I've updated the AreInputsStandard unit tests.
* Add CMutableTransaction and make CTransaction immutable.Pieter Wuille2014-06-211-9/+9
| | | | | In addition, introduce a cached hash inside CTransaction, to prevent recalculating it over and over again.
* Add required locks in testsWladimir J. van der Laan2014-04-231-0/+3
| | | | Unit tests with DEBUG_LOCKORDER were running into assertions.
* Add licenses for tests and test dataWladimir J. van der Laan2014-03-181-0/+4
| | | | | | | | - Add license headers to source files (years based on commit dates) in `src/test` as well as `qa` - Add `README.md` to `src/test/data` specifying MIT license Fixes #3848
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-9/+9
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* Log reason for non-standard transaction rejectionJeff Garzik2013-06-231-3/+5
|
* Removed AcceptToMemoryPool method from CTransaction. This method belongs to ↵Eric Lombrozo2013-06-051-9/+9
| | | | | | | | | | | | | | | | | the mempool instance. Removed AreInputsStandard from CTransaction, made it a regular function in main. Moved CTransaction::GetOutputFor to CCoinsViewCache. Moved GetLegacySigOpCount and GetP2SHSigOpCount out of CTransaction into regular functions in main. Moved GetValueIn and HaveInputs from CTransaction into CCoinsViewCache. Moved AllowFree, ClientCheckInputs, CheckInputs, UpdateCoins, and CheckTransaction out of CTransaction and into main. Moved IsStandard and IsFinal out of CTransaction and put them in main as IsStandardTx and IsFinalTx. Moved GetValueOut out of CTransaction into main. Moved CTxIn, CTxOut, and CTransaction into core. Added minimum fee parameter to CTxOut::IsDust() temporarily until CTransaction is moved to core.h so that CTxOut needn't know about CTransaction.
* CSecret/CKey -> CKey/CPubKey split/refactorPieter Wuille2013-05-301-7/+7
|
* Define dust transaction outputs, and make them non-standardGavin Andresen2013-05-031-1/+4
|