aboutsummaryrefslogtreecommitdiff
path: root/src/deploymentstatus.h
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2021-06-11 06:59:53 +1000
committerAnthony Towns <aj@erisian.com.au>2021-06-30 08:19:12 +1000
commitc64b2c6a0f79369624ae96b2e3d579d50aae4de6 (patch)
tree666e3fbbdf9ee9b06e40ac0955b90bf0fe6b4800 /src/deploymentstatus.h
parentde55304f6e7a8b607e6b3fc7436de50910747b0c (diff)
downloadbitcoin-c64b2c6a0f79369624ae96b2e3d579d50aae4de6.tar.xz
scripted-diff: rename versionbitscache
-BEGIN VERIFY SCRIPT- sed -i -e 's/versionbitscache/g_versionbitscache/g' $(git grep -l versionbitscache) -END VERIFY SCRIPT-
Diffstat (limited to 'src/deploymentstatus.h')
-rw-r--r--src/deploymentstatus.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/deploymentstatus.h b/src/deploymentstatus.h
index 327a5f7892..3c4f1895a1 100644
--- a/src/deploymentstatus.h
+++ b/src/deploymentstatus.h
@@ -11,7 +11,7 @@
#include <limits>
/** Global cache for versionbits deployment status */
-extern VersionBitsCache versionbitscache;
+extern VersionBitsCache g_versionbitscache;
/** Determine if a deployment is active for the next block */
inline bool DeploymentActiveAfter(const CBlockIndex* pindexPrev, const Consensus::Params& params, Consensus::BuriedDeployment dep)
@@ -23,7 +23,7 @@ inline bool DeploymentActiveAfter(const CBlockIndex* pindexPrev, const Consensus
inline bool DeploymentActiveAfter(const CBlockIndex* pindexPrev, const Consensus::Params& params, Consensus::DeploymentPos dep)
{
assert(Consensus::ValidDeployment(dep));
- return ThresholdState::ACTIVE == VersionBitsState(pindexPrev, params, dep, versionbitscache);
+ return ThresholdState::ACTIVE == VersionBitsState(pindexPrev, params, dep, g_versionbitscache);
}
/** Determine if a deployment is active for this block */