Changeset View
Changeset View
Standalone View
Standalone View
src/test/sigcache_tests.cpp
Show All 34 Lines | static const uint32_t TEST_INVARIANT_FLAGS = | ||||
SCRIPT_VERIFY_CHECKSEQUENCEVERIFY | SCRIPT_VERIFY_MINIMALIF | | SCRIPT_VERIFY_CHECKSEQUENCEVERIFY | SCRIPT_VERIFY_MINIMALIF | | ||||
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_ENABLE_CHECKDATASIG; | SCRIPT_ENABLE_CHECKDATASIG; | ||||
/* 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. | ||||
* | |||||
* Currently, no flags affect VerifySignature. | |||||
*/ | */ | ||||
static const uint32_t TEST_VARIANT_FLAGS = 0; | static const uint32_t TEST_VARIANT_FLAGS = SCRIPT_ENABLE_SCHNORR; | ||||
/** | /** | ||||
* 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 |