diff options
author | Johnson Lau <jl2012@xbt.hk> | 2017-10-21 04:24:14 +0800 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-05-24 14:03:01 -0400 |
commit | 1fffc2b346b2d2e129db5c9f5cad00e820c85c45 (patch) | |
tree | cf812d0e56979d0d34c17ed2e411ddcdae3d8689 /src/test/transaction_tests.cpp | |
parent | d353dd121be0bf2a525e4bbea2b4ada2954d2b15 (diff) |
Add transaction tests for constant scriptCode
Tests showing that CONST_SCRIPTCODE is applied only to non-segwit transactions
Github-Pull: #11423
Rebased-From: 0f8719bb035187076eeac025e2c786feb0f452d7
Diffstat (limited to 'src/test/transaction_tests.cpp')
-rw-r--r-- | src/test/transaction_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp index edfb35d155..0c6f100ce3 100644 --- a/src/test/transaction_tests.cpp +++ b/src/test/transaction_tests.cpp @@ -53,6 +53,7 @@ static std::map<std::string, unsigned int> mapFlagNames = { {std::string("WITNESS"), (unsigned int)SCRIPT_VERIFY_WITNESS}, {std::string("DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM"), (unsigned int)SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM}, {std::string("WITNESS_PUBKEYTYPE"), (unsigned int)SCRIPT_VERIFY_WITNESS_PUBKEYTYPE}, + {std::string("CONST_SCRIPTCODE"), (unsigned int)SCRIPT_VERIFY_CONST_SCRIPTCODE}, }; unsigned int ParseScriptFlags(std::string strFlags) |