les: historical data garbage collection (#19570)
This change introduces garbage collection for the light client. Historical chain data is deleted periodically. If you want to disable the GC, use the --light.nopruning flag.
This commit is contained in:
@ -53,9 +53,15 @@ const (
|
||||
// CheckpointProcessConfirmations is the number before a checkpoint is generated
|
||||
CheckpointProcessConfirmations = 256
|
||||
|
||||
// ImmutabilityThreshold is the number of blocks after which a chain segment is
|
||||
// FullImmutabilityThreshold is the number of blocks after which a chain segment is
|
||||
// considered immutable (i.e. soft finality). It is used by the downloader as a
|
||||
// hard limit against deep ancestors, by the blockchain against deep reorgs, by
|
||||
// the freezer as the cutoff threshold and by clique as the snapshot trust limit.
|
||||
ImmutabilityThreshold = 90000
|
||||
FullImmutabilityThreshold = 90000
|
||||
|
||||
// LightImmutabilityThreshold is the number of blocks after which a header chain
|
||||
// segment is considered immutable for light client(i.e. soft finality). It is used by
|
||||
// the downloader as a hard limit against deep ancestors, by the blockchain against deep
|
||||
// reorgs, by the light pruner as the pruning validity guarantee.
|
||||
LightImmutabilityThreshold = 30000
|
||||
)
|
||||
|
Reference in New Issue
Block a user