feat: removes deadlock causing delay reassignment

This commit is contained in:
Kartik Chopra 2024-04-24 09:48:08 -04:00 committed by mrekucci
parent 0e00290680
commit 6403996e37

View file

@ -674,10 +674,6 @@ func (c *Clique) Seal(chain consensus.ChainHeaderReader, block *types.Block, res
}
copy(header.Extra[len(header.Extra)-extraSeal:], sighash)
// For now, hard code delay to 20ms less than block period.
// This may cause deadlocks with certain numbers of nodes, more testing is needed.
delay = time.Millisecond * (time.Duration(c.config.PeriodMs - 20))
// Wait until sealing is terminated or delay timeout.
log.Trace("Waiting for slot to sign and propagate", "delay", common.PrettyDuration(delay))
go func() {