aboutsummaryrefslogtreecommitdiff
path: root/src/deploymentstatus.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-07-01 20:29:21 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-07-01 20:20:52 +0200
commitfa5658ed077bfb02b6281d642dc649abdb99b6ee (patch)
tree412bed2ed13aa79089e0b95731e0e5e7ab51b301 /src/deploymentstatus.h
parentfa11fecf0dac44846a08e1b325547641f2eca957 (diff)
downloadbitcoin-fa5658ed077bfb02b6281d642dc649abdb99b6ee.tar.xz
Use DeploymentEnabled to hide VB deployments
The helper was previously unused. This commit changes it to be more meaningful and puts it to use. See previous discussion at https://github.com/bitcoin/bitcoin/pull/19438/files#r650687320
Diffstat (limited to 'src/deploymentstatus.h')
-rw-r--r--src/deploymentstatus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deploymentstatus.h b/src/deploymentstatus.h
index 84c5e54698..f95c5996f5 100644
--- a/src/deploymentstatus.h
+++ b/src/deploymentstatus.h
@@ -49,7 +49,7 @@ inline bool DeploymentEnabled(const Consensus::Params& params, Consensus::Buried
inline bool DeploymentEnabled(const Consensus::Params& params, Consensus::DeploymentPos dep)
{
assert(Consensus::ValidDeployment(dep));
- return params.vDeployments[dep].nTimeout != 0;
+ return params.vDeployments[dep].nStartTime != Consensus::BIP9Deployment::NEVER_ACTIVE;
}
#endif // BITCOIN_DEPLOYMENTSTATUS_H