diff options
| author | Pieter Wuille <[email protected]> | 2014-10-12 18:39:47 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-11-25 12:38:01 +0100 |
| commit | b6e03cc59208305681745ad06f2056ffe6690597 (patch) | |
| tree | 78e701bf890c2302c2249266cfcd124e5b7e554a /src/test/transaction_tests.cpp | |
| parent | No semantic change: reuse stack variable in P2SH evaluation (diff) | |
| download | discoin-b6e03cc59208305681745ad06f2056ffe6690597.tar.xz discoin-b6e03cc59208305681745ad06f2056ffe6690597.zip | |
Add SCRIPT_VERIFY_CLEANSTACK (BIP62 rule 6)
Based on an earlier patch by Peter Todd, though the rules here are different
(P2SH scripts should not have a CLEANSTACK check before the P2SH evaluation).
Diffstat (limited to 'src/test/transaction_tests.cpp')
| -rw-r--r-- | src/test/transaction_tests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp index e939e8997..67b2dd5df 100644 --- a/src/test/transaction_tests.cpp +++ b/src/test/transaction_tests.cpp @@ -38,7 +38,8 @@ static std::map<string, unsigned int> mapFlagNames = boost::assign::map_list_of (string("SIGPUSHONLY"), (unsigned int)SCRIPT_VERIFY_SIGPUSHONLY) (string("MINIMALDATA"), (unsigned int)SCRIPT_VERIFY_MINIMALDATA) (string("NULLDUMMY"), (unsigned int)SCRIPT_VERIFY_NULLDUMMY) - (string("DISCOURAGE_UPGRADABLE_NOPS"), (unsigned int)SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS); + (string("DISCOURAGE_UPGRADABLE_NOPS"), (unsigned int)SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS) + (string("CLEANSTACK"), (unsigned int)SCRIPT_VERIFY_CLEANSTACK); unsigned int ParseScriptFlags(string strFlags) { |