Skip to content

Commit d43c6c0

Browse files
author
cevap
committed
revert failure by wrong commit, ref #13
1 parent 941f0c9 commit d43c6c0

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/main.cpp

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3071,19 +3071,11 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
30713071
*/
30723072
if (block.IsProofOfStake()) {
30733073

3074-
if (Params().NetworkID() == CBaseChainParams::TESTNET)){
3075-
3076-
if (pindex->nHeight <= 73)
3077-
return state.DoS(100, error("ConnectBlock() : PoS period not active"),
3078-
REJECT_INVALID, "PoS-early");
3079-
3080-
if (pindex->nHeight != 75 && Params().NetworkID() == CBaseChainParams::TESTNET)
3081-
return state.DoS(100, error("ConnectBlock() : PoS period not active"),
3082-
REJECT_INVALID, "PoS-early");
3083-
3084-
}
3074+
if (pindex->nHeight <= 73 && Params().NetworkID() == CBaseChainParams::TESTNET)
3075+
return state.DoS(100, error("ConnectBlock() : PoS period not active"),
3076+
REJECT_INVALID, "PoS-early");
30853077

3086-
if (pindex->nHeight <= 454 && Params().NetworkID() != CBaseChainParams::TESTNET && Params().NetworkID() != CBaseChainParams::REGTEST)
3078+
if (pindex->nHeight <= 454)
30873079
return state.DoS(100, error("ConnectBlock() : PoS period not active"),
30883080
REJECT_INVALID, "PoS-early");
30893081
}

0 commit comments

Comments
 (0)