mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
fix(forkid): Make compatible with prague1 fork
This commit is contained in:
parent
c7f3b7b72b
commit
c46c737d94
1 changed files with 5 additions and 0 deletions
|
|
@ -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(forksByTime)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue