diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-05-23 19:07:29 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-05-23 19:12:29 +0200 |
commit | 46771514fa86b9a5a0e0af34c1abfa1da22212f7 (patch) | |
tree | b51c2bba5880fa9c9d0a578d948d249847a41967 /src/validation.cpp | |
parent | 433c57aa6f304153f1b8740e0aa11b297f7fd143 (diff) | |
parent | 557c9a68fb72aeb535f2efe3cc82d3f5e66c6ad3 (diff) |
Merge #9571: RPC: getblockchaininfo returns BIP signaling statistics
557c9a6 RPC: getblockchaininfo: BIP9 stats (Matthew Zipkin)
Tree-SHA512: ecf0bf47f04f92becc77acc649fdfa270e768939acce42df39d30069398d40d9a30539862f7c307e08239f78d5c58c470ca5f6e717d2ab8e24db9be0dd7bec0c
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 73466b9df7..89358f9603 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -3935,6 +3935,12 @@ ThresholdState VersionBitsTipState(const Consensus::Params& params, Consensus::D return VersionBitsState(chainActive.Tip(), params, pos, versionbitscache); } +BIP9Stats VersionBitsTipStatistics(const Consensus::Params& params, Consensus::DeploymentPos pos) +{ + LOCK(cs_main); + return VersionBitsStatistics(chainActive.Tip(), params, pos); +} + int VersionBitsTipStateSinceHeight(const Consensus::Params& params, Consensus::DeploymentPos pos) { LOCK(cs_main); |