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

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jun 1, 2024
1 parent bb43782 commit a4085f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmos/runtime/miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (m *Miner) submitPayloadForBuilding(ctx context.Context) error {
// If we fail to find the previous block, we minimum of the current time
// and the next block time, time.Now() is always increasing, so eventually
// time.Now() > sCtx.BlockTime() + 1.
prevBlockTs = min(uint64(time.Now().Unix()))
prevBlockTs = min(uint64(time.Now().Unix()), uint64(sCtx.BlockTime().Unix())+1)
}

// Ensure that the block time is always increasing.
Expand Down

0 comments on commit a4085f5

Please sign in to comment.