Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 471 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
// Returns the script flags which should be checked for mempool admission when | // Returns the script flags which should be checked for mempool admission when | ||||
// the tip is at the given block. | // the tip is at the given block. | ||||
static uint32_t GetStandardScriptFlags(const Consensus::Params ¶ms, | static uint32_t GetStandardScriptFlags(const Consensus::Params ¶ms, | ||||
const CBlockIndex *pindexTip) { | const CBlockIndex *pindexTip) { | ||||
uint32_t flags = STANDARD_SCRIPT_VERIFY_FLAGS; | uint32_t flags = STANDARD_SCRIPT_VERIFY_FLAGS; | ||||
// Disable input sigchecks limit for mempool admission, prior to its | |||||
// proper activation. | |||||
flags &= ~SCRIPT_VERIFY_INPUT_SIGCHECKS; | |||||
// We make sure this node will have replay protection during the next hard | // We make sure this node will have replay protection during the next hard | ||||
// fork. | // fork. | ||||
if (IsReplayProtectionEnabled(params, pindexTip)) { | if (IsReplayProtectionEnabled(params, pindexTip)) { | ||||
flags |= SCRIPT_ENABLE_REPLAY_PROTECTION; | flags |= SCRIPT_ENABLE_REPLAY_PROTECTION; | ||||
} | } | ||||
return flags; | return flags; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 5,214 Lines • Show Last 20 Lines |