Changeset View
Changeset View
Standalone View
Standalone View
src/policy/policy.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
* minRelayTxFee, however changing the dust limit changes which transactions are | * minRelayTxFee, however changing the dust limit changes which transactions are | ||||
* standard and should be done with care and ideally rarely. It makes sense to | * standard and should be done with care and ideally rarely. It makes sense to | ||||
* only increase the dust limit after prior releases were already not creating | * only increase the dust limit after prior releases were already not creating | ||||
* outputs below the new threshold. | * outputs below the new threshold. | ||||
*/ | */ | ||||
static const Amount DUST_RELAY_TX_FEE(1000 * SATOSHI); | 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 | * Standard script verification flags that standard transactions will comply | ||||
* with. However scripts violating these flags may still be present in valid | * with. However scripts violating these flags may still be present in valid | ||||
* blocks and we must accept those blocks. | * blocks and we must accept those blocks. | ||||
*/ | */ | ||||
static constexpr uint32_t STANDARD_SCRIPT_VERIFY_FLAGS = | static constexpr uint32_t STANDARD_SCRIPT_VERIFY_FLAGS = | ||||
MANDATORY_SCRIPT_VERIFY_FLAGS | SCRIPT_VERIFY_DERSIG | | MANDATORY_SCRIPT_VERIFY_FLAGS | SCRIPT_VERIFY_DERSIG | | ||||
SCRIPT_VERIFY_SIGPUSHONLY | SCRIPT_VERIFY_MINIMALDATA | | SCRIPT_VERIFY_SIGPUSHONLY | SCRIPT_VERIFY_MINIMALDATA | | ||||
SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS | SCRIPT_VERIFY_CLEANSTACK | | SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS | SCRIPT_VERIFY_CLEANSTACK | | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |