Skip to content

Commit

Permalink
Mining code update
Browse files Browse the repository at this point in the history
  • Loading branch information
thesolarminer committed Sep 13, 2021
1 parent ad09eb8 commit c64f04a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3792,8 +3792,8 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta
if ( MainNet() && (block.GetBlockTime() <= pindexPrev->GetMedianTimePast()) )
return state.Invalid(false, REJECT_INVALID, "time-too-old", "block's timestamp is too early");

// Check timestamp against prev
if ( MainNet() && (block.GetBlockTime() <= (pindexPrev->GetMedianTimePast() + 60)) )
// Check timestamp and reject if blocks are too fast. Activates on October 4th.
if ( MainNet() && (block.GetBlockTime() > 1633309200) && (block.GetBlockTime() <= (pindexPrev->GetMedianTimePast() + 60)) )
return state.Invalid(false, REJECT_INVALID, "time-too-fast", "block's timestamp within 60 seconds of past 6 blocks");

// Check timestamp
Expand Down

0 comments on commit c64f04a

Please sign in to comment.