diff --git a/src/policy/policy.h b/src/policy/policy.h --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -73,6 +73,17 @@ */ static const Amount DUST_RELAY_TX_FEE(1000 * SATOSHI); +/** + * When transactions fail script evaluations under standard flags, this flagset + * influences the decision of whether to drop them or to also ban the originator + * (see CheckInputs). + */ +static const uint32_t MANDATORY_SCRIPT_VERIFY_FLAGS = + SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC | + SCRIPT_ENABLE_SIGHASH_FORKID | SCRIPT_VERIFY_LOW_S | + SCRIPT_VERIFY_NULLFAIL | SCRIPT_VERIFY_MINIMALDATA | + SCRIPT_ENABLE_SCHNORR_MULTISIG; + /** * Standard script verification flags that standard transactions will comply * with. However scripts violating these flags may still be present in valid diff --git a/src/script/standard.h b/src/script/standard.h --- a/src/script/standard.h +++ b/src/script/standard.h @@ -40,17 +40,6 @@ */ extern bool fAcceptDatacarrier; -/** - * When transactions fail script evaluations under standard flags, this flagset - * influences the decision of whether to drop them or to also ban the originator - * (see CheckInputs). - */ -static const uint32_t MANDATORY_SCRIPT_VERIFY_FLAGS = - SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC | - SCRIPT_ENABLE_SIGHASH_FORKID | SCRIPT_VERIFY_LOW_S | - SCRIPT_VERIFY_NULLFAIL | SCRIPT_VERIFY_MINIMALDATA | - SCRIPT_ENABLE_SCHNORR_MULTISIG; - enum txnouttype { TX_NONSTANDARD, // 'standard' transaction types: