aboutsummaryrefslogtreecommitdiff
path: root/src/test/transaction_tests.cpp
diff options
context:
space:
mode:
authorJohnson Lau <[email protected]>2017-10-21 04:24:14 +0800
committerJohnson Lau <[email protected]>2018-05-05 04:26:13 +0800
commit0f8719bb035187076eeac025e2c786feb0f452d7 (patch)
treebb6abca9cbf4ba152669c762f34e991d430fc4cd /src/test/transaction_tests.cpp
parentAdd constant scriptCode policy in non-segwit scripts (diff)
downloaddiscoin-0f8719bb035187076eeac025e2c786feb0f452d7.tar.xz
discoin-0f8719bb035187076eeac025e2c786feb0f452d7.zip
Add transaction tests for constant scriptCode
Tests showing that CONST_SCRIPTCODE is applied only to non-segwit transactions
Diffstat (limited to 'src/test/transaction_tests.cpp')
-rw-r--r--src/test/transaction_tests.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp
index b222392ee..5fd503836 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)