Skip to content

Commit 80de4dc

Browse files
committed
consensus: revert time.Until change
1 parent aee70ae commit 80de4dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎consensus/clique/clique.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ func (c *Clique) Seal(chain consensus.ChainReader, block *types.Block, stop <-ch
619619
}
620620
}
621621
// Sweet, the protocol permits us to sign the block, wait for our time
622-
delay := time.Until(time.Unix(header.Time.Int64(), 0))
622+
delay := time.Unix(header.Time.Int64(), 0).Sub(time.Now())
623623
if header.Difficulty.Cmp(diffNoTurn) == 0 {
624624
// It's not our turn explicitly to sign, delay it a bit
625625
wiggle := time.Duration(len(snap.Signers)/2+1) * wiggleTime

0 commit comments

Comments
 (0)