File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments