Skip to content

Commit

Permalink
Merge branch 'feature/patch-timewarp' of ssh://github.com/btcz/bitcoi…
Browse files Browse the repository at this point in the history
…nz into feature/patch-timewarp
  • Loading branch information
NickRHill committed Jun 15, 2018
2 parents 6c670d2 + 43249c6 commit c64eda4
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 @@ -3010,7 +3010,7 @@ bool CheckBlockHeader(const CBlockHeader& block, CValidationState& state, bool f
return state.Invalid(error("CheckBlockHeader(): block timestamp too far in the future"),
REJECT_INVALID, "time-too-new");

// starting at height 158750, decrease to 30 minute window to decrease effectiveness of timewarp attack.
// starting at height 159300, decrease to 30 minute window to decrease effectiveness of timewarp attack.
else if (nHeight >= chainParams.GetNewTimeRule() && block.GetBlockTime() > GetAdjustedTime() + 30 * 60)
return state.Invalid(error("CheckBlockHeader(): block timestamp too far in the future"),
REJECT_INVALID, "time-too-new");
Expand Down

0 comments on commit c64eda4

Please sign in to comment.