Skip to content

Commit 86be309

Browse files
committed
params: require non-zero blob update fraction
1 parent dde6292 commit 86be309

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

params/config.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,14 @@ func (c *ChainConfig) CheckConfigForkOrder() error {
773773
{name: "prague", timestamp: c.PragueTime, config: bsc.Prague},
774774
{name: "verkle", timestamp: c.VerkleTime, config: bsc.Verkle},
775775
} {
776-
if cur.timestamp != nil && cur.config == nil {
777-
return fmt.Errorf("unsupported fork configuration: missing blob configuration entry for %v in schedule", cur.name)
776+
if cur.timestamp != nil {
777+
// If the fork is configured, verify the blob schedule is valid.
778+
if cur.config == nil {
779+
return fmt.Errorf("unsupported fork configuration: missing blob configuration entry for %v in schedule", cur.name)
780+
}
781+
if cur.config.UpdateFraction == 0 {
782+
return fmt.Errorf("unsupported fork configuration: %v update fraction must be defined and non-zero", cur.name)
783+
}
778784
}
779785
}
780786

0 commit comments

Comments
 (0)