From 2fae0dffc50e11ce60eb6f2710bb3e5bc69776a1 Mon Sep 17 00:00:00 2001 From: instagibbs Date: Wed, 21 Sep 2016 12:54:27 -0400 Subject: [PATCH] Activate CSV and Segwit immediately --- src/versionbits.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/versionbits.cpp b/src/versionbits.cpp index 8a7cce7485..dd854768c4 100644 --- a/src/versionbits.cpp +++ b/src/versionbits.cpp @@ -164,6 +164,9 @@ public: ThresholdState VersionBitsState(const CBlockIndex* pindexPrev, const Consensus::Params& params, Consensus::DeploymentPos pos, VersionBitsCache& cache) { + // Just return true for rules included in Core 0.13 + if (pos == Consensus::DEPLOYMENT_SEGWIT || pos == Consensus::DEPLOYMENT_CSV) + return THRESHOLD_ACTIVE; return VersionBitsConditionChecker(pos).GetStateFor(pindexPrev, params, cache.caches[pos]); }