aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authormruddy <mruddy@users.noreply.github.com>2016-05-06 22:08:39 +0000
committermruddy <mruddy@users.noreply.github.com>2016-10-19 09:08:39 -0400
commitfc146095d20452686efe1944b143452bec394343 (patch)
treed57fe4980f09dab389f55ddb0658de4d97d8096a /src/main.cpp
parentd736a6eb1f91ba88059ff41634bd4ea715d9a1f1 (diff)
RPC: augment getblockchaininfo bip9_softforks data
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1777717cd9..50158b4687 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -6918,6 +6918,12 @@ ThresholdState VersionBitsTipState(const Consensus::Params& params, Consensus::D
return VersionBitsState(chainActive.Tip(), params, pos, versionbitscache);
}
+int VersionBitsTipStateSinceHeight(const Consensus::Params& params, Consensus::DeploymentPos pos)
+{
+ LOCK(cs_main);
+ return VersionBitsStateSinceHeight(chainActive.Tip(), params, pos, versionbitscache);
+}
+
class CMainCleanup
{
public: