mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-09 00:11:36 +00:00
eth: load partial state contracts file during initialization
LoadPartialStateContracts() was only called from Validate() which was never invoked, causing the contracts file to never be loaded. Call it directly during Ethereum node initialization when partial state is enabled.
This commit is contained in:
parent
a7a7de7365
commit
137a694282
1 changed files with 3 additions and 0 deletions
|
|
@ -349,6 +349,9 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
|
|||
// Create partial state filter if enabled
|
||||
var partialFilter partial.ContractFilter
|
||||
if config.PartialState.Enabled {
|
||||
if err := config.PartialState.LoadPartialStateContracts(); err != nil {
|
||||
return nil, fmt.Errorf("failed to load partial state contracts: %w", err)
|
||||
}
|
||||
partialFilter = partial.NewConfiguredFilter(config.PartialState.Contracts)
|
||||
log.Info("Partial statefulness enabled", "contracts", len(config.PartialState.Contracts))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue