Changeset View
Changeset View
Standalone View
Standalone View
src/test/sigcache_tests.cpp
| Show All 38 Lines | static const uint32_t TEST_INVARIANT_FLAGS = | ||||
| SCRIPT_VERIFY_NULLFAIL | SCRIPT_VERIFY_COMPRESSED_PUBKEYTYPE | | SCRIPT_VERIFY_NULLFAIL | SCRIPT_VERIFY_COMPRESSED_PUBKEYTYPE | | ||||
| SCRIPT_ENABLE_SIGHASH_FORKID | SCRIPT_ENABLE_REPLAY_PROTECTION | | SCRIPT_ENABLE_SIGHASH_FORKID | SCRIPT_ENABLE_REPLAY_PROTECTION | | ||||
| SCRIPT_VERIFY_CHECKDATASIG_SIGOPS | SCRIPT_DISALLOW_SEGWIT_RECOVERY; | SCRIPT_VERIFY_CHECKDATASIG_SIGOPS | SCRIPT_DISALLOW_SEGWIT_RECOVERY; | ||||
| /* We will be testing that these flags DO affect the cache entry. The expected | /* We will be testing that these flags DO affect the cache entry. The expected | ||||
| * behaviour is that flags which are not explicitly listed as invariant in | * behaviour is that flags which are not explicitly listed as invariant in | ||||
| * script/sigcache.cpp will affect the cache entry. Here we will thus enforce | * script/sigcache.cpp will affect the cache entry. Here we will thus enforce | ||||
| * that certain flags are omitted from that sigcache.cpp list. | * that certain flags are omitted from that sigcache.cpp list. | ||||
| */ | */ | ||||
| static const uint32_t TEST_VARIANT_FLAGS = SCRIPT_ENABLE_SCHNORR; | static const uint32_t TEST_VARIANT_FLAGS = 0; | ||||
| /** | /** | ||||
| * Sigcache is only accessible via CachingTransactionSignatureChecker | * Sigcache is only accessible via CachingTransactionSignatureChecker | ||||
| * as friend. | * as friend. | ||||
| */ | */ | ||||
| class TestCachingTransactionSignatureChecker { | class TestCachingTransactionSignatureChecker { | ||||
| CachingTransactionSignatureChecker *pchecker; | CachingTransactionSignatureChecker *pchecker; | ||||
| ▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines | |||||