mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
params: require non-zero blob update fraction
This commit is contained in:
parent
dde6292b44
commit
86be309281
1 changed files with 8 additions and 2 deletions
|
|
@ -773,9 +773,15 @@ func (c *ChainConfig) CheckConfigForkOrder() error {
|
||||||
{name: "prague", timestamp: c.PragueTime, config: bsc.Prague},
|
{name: "prague", timestamp: c.PragueTime, config: bsc.Prague},
|
||||||
{name: "verkle", timestamp: c.VerkleTime, config: bsc.Verkle},
|
{name: "verkle", timestamp: c.VerkleTime, config: bsc.Verkle},
|
||||||
} {
|
} {
|
||||||
if cur.timestamp != nil && cur.config == nil {
|
if cur.timestamp != nil {
|
||||||
|
// If the fork is configured, verify the blob schedule is valid.
|
||||||
|
if cur.config == nil {
|
||||||
return fmt.Errorf("unsupported fork configuration: missing blob configuration entry for %v in schedule", cur.name)
|
return fmt.Errorf("unsupported fork configuration: missing blob configuration entry for %v in schedule", cur.name)
|
||||||
}
|
}
|
||||||
|
if cur.config.UpdateFraction == 0 {
|
||||||
|
return fmt.Errorf("unsupported fork configuration: %v update fraction must be defined and non-zero", cur.name)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue