aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorMatthew Zipkin <pinheadmz@gmail.com>2017-01-13 17:06:50 -0800
committerMatthew Zipkin <pinheadmz@gmail.com>2017-03-24 16:57:05 -0700
commit557c9a68fb72aeb535f2efe3cc82d3f5e66c6ad3 (patch)
treeb347a1975468bcae82ee6c1bb051f001973c6408 /src/validation.cpp
parenta0b1e57b20a17177ed5a9a54e4a8aab597a546b4 (diff)
RPC: getblockchaininfo: BIP9 stats
add RPC tests for BIP9 counting stats
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 037b9c0abc..c1ca3ea8e9 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -4153,6 +4153,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);