Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.cpp
Show First 20 Lines • Show All 702 Lines • ▼ Show 20 Lines | for (int j = 0; j < (int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++j) { | ||||
switch (state) { | switch (state) { | ||||
case THRESHOLD_DEFINED: | case THRESHOLD_DEFINED: | ||||
case THRESHOLD_FAILED: | case THRESHOLD_FAILED: | ||||
// Not exposed to GBT at all | // Not exposed to GBT at all | ||||
break; | break; | ||||
case THRESHOLD_LOCKED_IN: | case THRESHOLD_LOCKED_IN: | ||||
// Ensure bit is set in block version | // Ensure bit is set in block version | ||||
pblock->nVersion |= VersionBitsMask(consensusParams, pos); | pblock->nVersion |= VersionBitsMask(consensusParams, pos); | ||||
// FALL THROUGH to get vbavailable set... | // FALLTHROUGH to get vbavailable set... | ||||
case THRESHOLD_STARTED: { | case THRESHOLD_STARTED: { | ||||
const struct BIP9DeploymentInfo &vbinfo = | const struct BIP9DeploymentInfo &vbinfo = | ||||
VersionBitsDeploymentInfo[pos]; | VersionBitsDeploymentInfo[pos]; | ||||
vbavailable.push_back(Pair( | vbavailable.push_back(Pair( | ||||
gbt_vb_name(pos), consensusParams.vDeployments[pos].bit)); | gbt_vb_name(pos), consensusParams.vDeployments[pos].bit)); | ||||
if (setClientRules.find(vbinfo.name) == setClientRules.end()) { | if (setClientRules.find(vbinfo.name) == setClientRules.end()) { | ||||
if (!vbinfo.gbt_force) { | if (!vbinfo.gbt_force) { | ||||
// If the client doesn't support this, don't indicate it | // If the client doesn't support this, don't indicate it | ||||
▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines |