Skip to content

Commit

Permalink
params: require nil BlobScheduleConfig for OP-Stack chains
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianst committed Feb 25, 2025
1 parent 1fb8462 commit 2254ad5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -878,9 +878,13 @@ func (c *ChainConfig) CheckConfigForkOrder() error {
}
}

// OP-Stack chains don't support blobs, so don't need a BlobScheduleConfig.
// OP-Stack chains don't support blobs, and must have a nil BlobScheduleConfig.
if c.IsOptimism() {
return nil
if c.BlobScheduleConfig == nil {
return nil
} else {
return errors.New("OP-Stack chains must have empty blob configuration")
}
}

// Check that all forks with blobs explicitly define the blob schedule configuration.
Expand Down

0 comments on commit 2254ad5

Please sign in to comment.