MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / BIP9SoftForkDescPushBack

Function BIP9SoftForkDescPushBack

src/rpc/blockchain.cpp:1225–1232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1223}
1224
1225static void BIP9SoftForkDescPushBack(UniValue& bip9_softforks, const Consensus::Params& consensusParams, Consensus::DeploymentPos id)
1226{
1227 // Deployments with timeout value of 0 are hidden.
1228 // A timeout value of 0 guarantees a softfork will never be activated.
1229 // This is used when softfork codes are merged without specifying the deployment schedule.
1230 if (consensusParams.vDeployments[id].nTimeout > 0)
1231 bip9_softforks.pushKV(VersionBitsDeploymentInfo[id].name, BIP9SoftForkDesc(consensusParams, id));
1232}
1233
1234UniValue getblockchaininfo(const JSONRPCRequest& request)
1235{

Callers 1

getblockchaininfoFunction · 0.85

Calls 2

BIP9SoftForkDescFunction · 0.85
pushKVMethod · 0.45

Tested by

no test coverage detected