From 0f8719bb035187076eeac025e2c786feb0f452d7 Mon Sep 17 00:00:00 2001 From: Johnson Lau Date: Sat, 21 Oct 2017 04:24:14 +0800 Subject: Add transaction tests for constant scriptCode Tests showing that CONST_SCRIPTCODE is applied only to non-segwit transactions --- src/test/transaction_tests.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test/transaction_tests.cpp') diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp index b222392ee5..5fd5038369 100644 --- a/src/test/transaction_tests.cpp +++ b/src/test/transaction_tests.cpp @@ -53,6 +53,7 @@ static std::map 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) -- cgit v1.2.3