From 374e438f4282df9e60c90e20a16f902c9488cc16 Mon Sep 17 00:00:00 2001 From: Jaynti Kanani Date: Thu, 26 Sep 2019 13:54:12 +0530 Subject: [PATCH] use wiggle as 2*period --- consensus/bor/bor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/bor/bor.go b/consensus/bor/bor.go index 3fae9c0151..2c2fcf020f 100644 --- a/consensus/bor/bor.go +++ b/consensus/bor/bor.go @@ -726,7 +726,7 @@ func (c *Bor) Seal(chain consensus.ChainReader, block *types.Block, results chan // Sweet, the protocol permits us to sign the block, wait for our time delay := time.Unix(int64(header.Time), 0).Sub(time.Now()) // nolint: gosimple - wiggle := time.Duration(wiggleTime) * time.Duration(tempIndex-proposerIndex) + wiggle := time.Duration(2*c.config.Period) * time.Second * time.Duration(tempIndex-proposerIndex) delay += wiggle fmt.Println("Out-of-turn signing requested", "wiggle", common.PrettyDuration(wiggle))