Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 1,631 Lines • ▼ Show 20 Lines | for (int i = 0; i < (int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; i++) { | ||||
versionbitscache); | versionbitscache); | ||||
if (state == ThresholdState::LOCKED_IN || | if (state == ThresholdState::LOCKED_IN || | ||||
state == ThresholdState::STARTED) { | state == ThresholdState::STARTED) { | ||||
nVersion |= VersionBitsMask( | nVersion |= VersionBitsMask( | ||||
params, static_cast<Consensus::DeploymentPos>(i)); | params, static_cast<Consensus::DeploymentPos>(i)); | ||||
} | } | ||||
} | } | ||||
return nVersion; | // Clear the last 4 bits (miner fund activation). | ||||
return nVersion & ~uint32_t(0x0f); | |||||
} | } | ||||
// Returns the script flags which should be checked for the block after | // Returns the script flags which should be checked for the block after | ||||
// the given block. | // the given block. | ||||
static uint32_t GetNextBlockScriptFlags(const Consensus::Params ¶ms, | static uint32_t GetNextBlockScriptFlags(const Consensus::Params ¶ms, | ||||
const CBlockIndex *pindex) { | const CBlockIndex *pindex) { | ||||
uint32_t flags = SCRIPT_VERIFY_NONE; | uint32_t flags = SCRIPT_VERIFY_NONE; | ||||
▲ Show 20 Lines • Show All 4,254 Lines • Show Last 20 Lines |