Skip to content

Commit

Permalink
revert failure by wrong commit, ref #13
Browse files Browse the repository at this point in the history
  • Loading branch information
cevap committed Mar 30, 2018
1 parent 941f0c9 commit d43c6c0
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3071,19 +3071,11 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
*/
if (block.IsProofOfStake()) {

if (Params().NetworkID() == CBaseChainParams::TESTNET)){

if (pindex->nHeight <= 73)
return state.DoS(100, error("ConnectBlock() : PoS period not active"),
REJECT_INVALID, "PoS-early");

if (pindex->nHeight != 75 && Params().NetworkID() == CBaseChainParams::TESTNET)
return state.DoS(100, error("ConnectBlock() : PoS period not active"),
REJECT_INVALID, "PoS-early");

}
if (pindex->nHeight <= 73 && Params().NetworkID() == CBaseChainParams::TESTNET)
return state.DoS(100, error("ConnectBlock() : PoS period not active"),
REJECT_INVALID, "PoS-early");

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

0 comments on commit d43c6c0

Please sign in to comment.