| 1571 | } |
| 1572 | |
| 1573 | static 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 | |
| 1588 | static void SoftForkDescPushBack(const CBlockIndex* blockindex, UniValue& softforks, const Consensus::Params& consensusParams, Consensus::DeploymentPos id) |
| 1589 | { |
no test coverage detected