diff options
author | Carl Dong <contact@carldong.me> | 2020-09-15 16:16:56 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-03-01 17:56:07 -0500 |
commit | 31eac50c721dd3b0bd2347e76196bf16913e9be9 (patch) | |
tree | d9712e82d978f0bfc840c5a837a1d758f3288e66 /src/validation.cpp | |
parent | 63e4c7316a537900f525e221d8042587b443cc3d (diff) | |
download | bitcoin-31eac50c721dd3b0bd2347e76196bf16913e9be9.tar.xz |
validation: Remove global ::VersionBitsTip{State,SinceHeight,Statistics}
Tip: versionbitscache is currently a global so we didn't need to pass it
in to any of ::VersionBitsTip*'s callers
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 95fb3f6864..b82767ff2c 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4997,24 +4997,6 @@ CBlockFileInfo* GetBlockFileInfo(size_t n) return &vinfoBlockFile.at(n); } -ThresholdState VersionBitsTipState(const Consensus::Params& params, Consensus::DeploymentPos pos) -{ - LOCK(cs_main); - 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); - return VersionBitsStateSinceHeight(::ChainActive().Tip(), params, pos, versionbitscache); -} - static const uint64_t MEMPOOL_DUMP_VERSION = 1; bool LoadMempool(CTxMemPool& pool, CChainState& active_chainstate) |