fix(forkid): Make compatible with prague1 fork

This commit is contained in:
Cal Bera 2025-08-08 16:18:45 -07:00
parent c7f3b7b72b
commit c46c737d94

View file

@ -268,6 +268,11 @@ func gatherForks(config *params.ChainConfig, genesis uint64) ([]uint64, []uint64
} }
} }
} }
// Berachain-specific: include nested Prague1 fork time in the fork id set
// so that clients using it (e.g. reth) compute the same fork checksum.
if config != nil && config.Berachain.Prague1.Time != nil {
forksByTime = append(forksByTime, *config.Berachain.Prague1.Time)
}
slices.Sort(forksByBlock) slices.Sort(forksByBlock)
slices.Sort(forksByTime) slices.Sort(forksByTime)