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:
		@@ -122,10 +122,11 @@ type Config struct {
 | 
			
		||||
	Whitelist map[uint64]common.Hash `toml:"-"`
 | 
			
		||||
 | 
			
		||||
	// Light client options
 | 
			
		||||
	LightServ    int `toml:",omitempty"` // Maximum percentage of time allowed for serving LES requests
 | 
			
		||||
	LightIngress int `toml:",omitempty"` // Incoming bandwidth limit for light servers
 | 
			
		||||
	LightEgress  int `toml:",omitempty"` // Outgoing bandwidth limit for light servers
 | 
			
		||||
	LightPeers   int `toml:",omitempty"` // Maximum number of LES client peers
 | 
			
		||||
	LightServ    int  `toml:",omitempty"` // Maximum percentage of time allowed for serving LES requests
 | 
			
		||||
	LightIngress int  `toml:",omitempty"` // Incoming bandwidth limit for light servers
 | 
			
		||||
	LightEgress  int  `toml:",omitempty"` // Outgoing bandwidth limit for light servers
 | 
			
		||||
	LightPeers   int  `toml:",omitempty"` // Maximum number of LES client peers
 | 
			
		||||
	LightNoPrune bool `toml:",omitempty"` // Whether to disable light chain pruning
 | 
			
		||||
 | 
			
		||||
	// Ultra Light client options
 | 
			
		||||
	UltraLightServers      []string `toml:",omitempty"` // List of trusted ultra light servers
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user