MCPcopy Create free account
hub / github.com/ElementsProject/elements / SoftForkDescPushBack

Function SoftForkDescPushBack

src/rpc/blockchain.cpp:1573–1586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1571}
1572
1573static void SoftForkDescPushBack(const CBlockIndex* blockindex, UniValue& softforks, const Consensus::Params& params, Consensus::BuriedDeployment dep)
1574{
1575 // For buried deployments.
1576
1577 if (!DeploymentEnabled(params, dep)) return;
1578
1579 UniValue rv(UniValue::VOBJ);
1580 rv.pushKV("type", "buried");
1581 // getdeploymentinfo reports the softfork as active from when the chain height is
1582 // one below the activation height
1583 rv.pushKV("active", DeploymentActiveAfter(blockindex, params, dep));
1584 rv.pushKV("height", params.DeploymentHeight(dep));
1585 softforks.pushKV(DeploymentName(dep), rv);
1586}
1587
1588static void SoftForkDescPushBack(const CBlockIndex* blockindex, UniValue& softforks, const Consensus::Params& consensusParams, Consensus::DeploymentPos id)
1589{

Callers 1

DeploymentInfoFunction · 0.85

Calls 11

DeploymentEnabledFunction · 0.85
DeploymentActiveAfterFunction · 0.85
DeploymentHeightMethod · 0.80
StateSinceHeightMethod · 0.80
StatisticsMethod · 0.80
DeploymentNameFunction · 0.50
pushKVMethod · 0.45
StateMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected