mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
params: validate that any defined BPOs (or cancun/prague) have blob schedules set
This commit is contained in:
parent
e63ce97c11
commit
d45a9f5504
1 changed files with 6 additions and 0 deletions
|
|
@ -990,6 +990,12 @@ func (c *ChainConfig) CheckConfigForkOrder() error {
|
|||
return fmt.Errorf("invalid chain configuration in blobSchedule for fork %q: %v", cur.name, err)
|
||||
}
|
||||
}
|
||||
if cur.timestamp != nil {
|
||||
// If cancun/prague or BPO is configured, a blob schedule must be defined
|
||||
if cur.config == nil {
|
||||
return fmt.Errorf("invalid chain configuration: missing entry for fork/bpo %q in blobSchedule", cur.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue