Skip to content

Commit b1646f1

Browse files
mzumsandejonatack
authored andcommitted
test: set segwit height back to 0 on regtest
This was changed in #22818 from 0 to 1. Since it changes BLOCK_OPT_WIT of the genesis block, older versions of bitcoin core would not read regtest directories created with newer versions without a reindex. Github-Pull: bitcoin#24527 Rebased-From: 5ce3057
1 parent ef6a37b commit b1646f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chainparams.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ class CRegTestParams : public CChainParams {
397397
consensus.BIP65Height = 1; // Always active unless overridden
398398
consensus.BIP66Height = 1; // Always active unless overridden
399399
consensus.CSVHeight = 1; // Always active unless overridden
400-
consensus.SegwitHeight = 1; // Always active unless overridden
400+
consensus.SegwitHeight = 0; // Always active unless overridden
401401
consensus.MinBIP9WarningHeight = 0;
402402
consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
403403
consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; // two weeks

0 commit comments

Comments
 (0)