RPC: getblockchaininfo: BIP9 stats

add RPC tests for BIP9 counting stats
This commit is contained in:
Matthew Zipkin
2017-01-13 17:06:50 -08:00
parent a0b1e57b20
commit 557c9a68fb
6 changed files with 121 additions and 7 deletions

View File

@@ -333,6 +333,9 @@ std::string FormatStateMessage(const CValidationState &state);
/** Get the BIP9 state for a given deployment at the current tip. */
ThresholdState VersionBitsTipState(const Consensus::Params& params, Consensus::DeploymentPos pos);
/** Get the numerical statistics for the BIP9 state for a given deployment at the current tip. */
BIP9Stats VersionBitsTipStatistics(const Consensus::Params& params, Consensus::DeploymentPos pos);
/** Get the block height at which the BIP9 deployment switched into the state for the block building on the current tip. */
int VersionBitsTipStateSinceHeight(const Consensus::Params& params, Consensus::DeploymentPos pos);