Skip to content

Commit

Permalink
consensus/parlia: leave buffer time for import and vote
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh0 committed Jul 12, 2024
1 parent f513d20 commit 9f663bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/parlia/parlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ func (p *Parlia) Delay(chain consensus.ChainReader, header *types.Header, leftOv
// set the value of timeForMining to a small amount
timeForMining = 500 * time.Millisecond
} else {
timeForMining = time.Duration(p.config.Period) * time.Second
timeForMining = time.Duration(p.config.Period) * time.Second * 2 / 3
}
}
if delay > timeForMining {
Expand Down

0 comments on commit 9f663bf

Please sign in to comment.