Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 479 Lines • ▼ Show 20 Lines | static uint32_t GetStandardScriptFlags(const Consensus::Params ¶ms, | ||||
// declared-standard flags. | // declared-standard flags. | ||||
uint32_t flags = GetNextBlockScriptFlags(params, pindexTip) | | uint32_t flags = GetNextBlockScriptFlags(params, pindexTip) | | ||||
STANDARD_SCRIPT_VERIFY_FLAGS; | STANDARD_SCRIPT_VERIFY_FLAGS; | ||||
// Disable input sigchecks limit for mempool admission, prior to its | // Disable input sigchecks limit for mempool admission, prior to its | ||||
// proper activation. | // proper activation. | ||||
flags &= ~SCRIPT_VERIFY_INPUT_SIGCHECKS; | flags &= ~SCRIPT_VERIFY_INPUT_SIGCHECKS; | ||||
if (IsPhononEnabled(params, pindexTip)) { | |||||
flags |= SCRIPT_VERIFY_INPUT_SIGCHECKS; | |||||
} | |||||
return flags; | return flags; | ||||
} | } | ||||
// Used to avoid mempool polluting consensus critical paths if CCoinsViewMempool | // Used to avoid mempool polluting consensus critical paths if CCoinsViewMempool | ||||
// were somehow broken and returning the wrong scriptPubKeys | // were somehow broken and returning the wrong scriptPubKeys | ||||
static bool CheckInputsFromMempoolAndCache( | static bool CheckInputsFromMempoolAndCache( | ||||
const CTransaction &tx, CValidationState &state, | const CTransaction &tx, CValidationState &state, | ||||
const CCoinsViewCache &view, const CTxMemPool &pool, const uint32_t flags, | const CCoinsViewCache &view, const CTxMemPool &pool, const uint32_t flags, | ||||
▲ Show 20 Lines • Show All 5,318 Lines • Show Last 20 Lines |