use wiggle as 2*period

This commit is contained in:
Jaynti Kanani 2019-09-26 13:54:12 +05:30
parent 6cc7e88e94
commit 374e438f42
No known key found for this signature in database
GPG key ID: 4396982C976BAE5E

View file

@ -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))