Skip to content

Commit

Permalink
[Tests] Fix CheckBlockHeader version after block 300 for regtest
Browse files Browse the repository at this point in the history
Github-Pull: #1218
Rebased-From: af05235
  • Loading branch information
random-zebra authored and Fuzzbawls committed Jan 11, 2020
1 parent 3b8de3a commit 3c84efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4345,7 +4345,7 @@ bool CheckBlockHeader(const CBlockHeader& block, CValidationState& state, bool f
return state.DoS(50, error("CheckBlockHeader() : block version must be above 4 after ZerocoinStartHeight"),
REJECT_INVALID, "block-version");
} else {
if (block.nVersion >= Params().Zerocoin_HeaderVersion())
if (block.nVersion >= Params().Zerocoin_HeaderVersion() && Params().NetworkID() != CBaseChainParams::REGTEST)
return state.DoS(50, error("CheckBlockHeader() : block version must be below 4 before ZerocoinStartHeight"),
REJECT_INVALID, "block-version");
}
Expand Down

0 comments on commit 3c84efd

Please sign in to comment.