Determine if a deployment is active for the next block */
| 15 | |
| 16 | /** Determine if a deployment is active for the next block */ |
| 17 | inline bool DeploymentActiveAfter(const CBlockIndex* pindexPrev, const Consensus::Params& params, Consensus::BuriedDeployment dep) |
| 18 | { |
| 19 | assert(Consensus::ValidDeployment(dep)); |
| 20 | return (pindexPrev == nullptr ? 0 : pindexPrev->nHeight + 1) >= params.DeploymentHeight(dep); |
| 21 | } |
| 22 | |
| 23 | inline bool DeploymentActiveAfter(const CBlockIndex* pindexPrev, const Consensus::Params& params, Consensus::DeploymentPos dep) |
| 24 | { |
no test coverage detected