Skip to content

Commit

Permalink
fix: empty block period waiting too long (#1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonydenyer committed Nov 4, 2022
1 parent 2602589 commit aabfccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/istanbul/qbft/core/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (c *core) handleRequest(request *Request) error {
config := c.config.GetConfig(c.current.Sequence())
if config.EmptyBlockPeriod > config.BlockPeriod {
log.Info("EmptyBlockPeriod detected adding delay to request", "EmptyBlockPeriod", config.EmptyBlockPeriod, "BlockTime", block.Time())
delay = time.Duration(config.EmptyBlockPeriod) * time.Second
delay = time.Duration(config.EmptyBlockPeriod-config.BlockPeriod) * time.Second
}
}

Expand Down

0 comments on commit aabfccf

Please sign in to comment.