diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go index faafbc1557e6429f0b4b46881835ef5b66158f28..8a5ceb18ea450899efa3022a989ec816912025d0 100644 --- a/eth/ethconfig/config.go +++ b/eth/ethconfig/config.go @@ -162,6 +162,7 @@ type Config struct { 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 + LightNoSyncServe bool `toml:",omitempty"` // Whether to serve light clients before syncing SyncFromCheckpoint bool `toml:",omitempty"` // Whether to sync the header chain from the configured checkpoint // Ultra Light client options diff --git a/eth/ethconfig/gen_config.go b/eth/ethconfig/gen_config.go index cff2f84ed4404cf0d4bb4929af7b40c9561f225f..e5d224036c3004d8a80127507d42a8c12e8fb2d9 100644 --- a/eth/ethconfig/gen_config.go +++ b/eth/ethconfig/gen_config.go @@ -29,6 +29,8 @@ func (c Config) MarshalTOML() (interface{}, error) { LightIngress int `toml:",omitempty"` LightEgress int `toml:",omitempty"` StorageMode string + LightNoPrune bool `toml:",omitempty"` + LightNoSyncServe bool `toml:",omitempty"` ArchiveSyncInterval int LightServ int `toml:",omitempty"` LightPeers int `toml:",omitempty"` @@ -112,6 +114,8 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error { LightIngress *int `toml:",omitempty"` LightEgress *int `toml:",omitempty"` Mode *string + LightNoPrune *bool `toml:",omitempty"` + LightNoSyncServe *bool `toml:",omitempty"` ArchiveSyncInterval *int LightServ *int `toml:",omitempty"` LightPeers *int `toml:",omitempty"`