From f40bfeb7d5f6b16aa765c8b3184bbf3427939680 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 bf32ae6627..185f0e7a66 100644 --- a/src/versionbits.cpp +++ b/src/versionbits.cpp @@ -134,6 +134,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]); }