Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
bet
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jun 1, 2024
1 parent 2c17323 commit bb43782
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cosmos/runtime/miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ func (m *Miner) submitPayloadForBuilding(ctx context.Context) error {
prevBlockTs = min(uint64(time.Now().Unix()))
}

// Ensure that the block time is always increasing.
if prevBlockTs <= uint64(sCtx.BlockTime().Unix()) {
prevBlockTs = uint64(sCtx.BlockTime().Unix())
}

ts := max(uint64(sCtx.BlockTime().Unix()), prevBlockTs+1)

// Build Payload.
Expand Down

0 comments on commit bb43782

Please sign in to comment.