aboutsummaryrefslogtreecommitdiff
path: root/src/versionbits.h
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/versionbits.h
parentd736a6eb1f91ba88059ff41634bd4ea715d9a1f1 (diff)
downloadbitcoin-fc146095d20452686efe1944b143452bec394343.tar.xz
RPC: augment getblockchaininfo bip9_softforks data
Diffstat (limited to 'src/versionbits.h')
-rw-r--r--src/versionbits.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/versionbits.h b/src/versionbits.h
index ede2dcdda8..7a929266aa 100644
--- a/src/versionbits.h
+++ b/src/versionbits.h
@@ -51,8 +51,9 @@ protected:
virtual int Threshold(const Consensus::Params& params) const =0;
public:
- // Note that the function below takes a pindexPrev as input: they compute information for block B based on its parent.
+ // Note that the functions below take a pindexPrev as input: they compute information for block B based on its parent.
ThresholdState GetStateFor(const CBlockIndex* pindexPrev, const Consensus::Params& params, ThresholdConditionCache& cache) const;
+ int GetStateSinceHeightFor(const CBlockIndex* pindexPrev, const Consensus::Params& params, ThresholdConditionCache& cache) const;
};
struct VersionBitsCache
@@ -63,6 +64,7 @@ struct VersionBitsCache
};
ThresholdState VersionBitsState(const CBlockIndex* pindexPrev, const Consensus::Params& params, Consensus::DeploymentPos pos, VersionBitsCache& cache);
+int VersionBitsStateSinceHeight(const CBlockIndex* pindexPrev, const Consensus::Params& params, Consensus::DeploymentPos pos, VersionBitsCache& cache);
uint32_t VersionBitsMask(const Consensus::Params& params, Consensus::DeploymentPos pos);
#endif