From 6403996e375ddc985c63bbd5630638a4b1b00736 Mon Sep 17 00:00:00 2001 From: Kartik Chopra Date: Wed, 24 Apr 2024 09:48:08 -0400 Subject: [PATCH] feat: removes deadlock causing delay reassignment --- consensus/clique/clique.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/consensus/clique/clique.go b/consensus/clique/clique.go index e4a8a6d77a..ecf5be129c 100644 --- a/consensus/clique/clique.go +++ b/consensus/clique/clique.go @@ -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() {