Skip to content

Commit

Permalink
consensus/parlia: recover history cap
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh0 committed Aug 5, 2024
1 parent 207e13d commit 11c111f
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 @@ -743,7 +743,7 @@ func (p *Parlia) snapshot(chain consensus.ChainHeaderReader, number uint64, hash
// piled up more headers than allowed to be reorged (chain reinit from a freezer),
// consider the checkpoint trusted and snapshot it.
// even BEP-341 enabled, an offset `defaultEpochLength/2` can ensure getting the right validators.
if number == 0 || (number%p.config.Epoch == defaultEpochLength/2 && (len(headers) > int(params.FullImmutabilityThreshold)/10)) {
if number == 0 || (number%p.config.Epoch == defaultEpochLength/2 && (len(headers) > int(params.FullImmutabilityThreshold))) {
var (
checkpoint *types.Header
blockHash common.Hash
Expand Down

0 comments on commit 11c111f

Please sign in to comment.