aboutsummaryrefslogtreecommitdiff
path: root/src/versionbits.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-10-19 16:36:21 +0200
committerWladimir J. van der Laan <[email protected]>2016-10-19 16:41:59 +0200
commit5d2c8e524e1024ff562c0f48280f26d8e4e897f7 (patch)
tree97554eb23b3839006a8eee8b7fcc9193129a2b21 /src/versionbits.h
parentMerge #8788: [RPC] Give RPC commands more information about the RPC request (diff)
parentRPC: augment getblockchaininfo bip9_softforks data (diff)
downloaddiscoin-5d2c8e524e1024ff562c0f48280f26d8e4e897f7.tar.xz
discoin-5d2c8e524e1024ff562c0f48280f26d8e4e897f7.zip
Merge #7948: RPC: augment getblockchaininfo bip9_softforks data
fc14609 RPC: augment getblockchaininfo bip9_softforks data (mruddy)
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 ede2dcdda..7a929266a 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