Skip to content

Commit

Permalink
Don't call AuRa Initialize after The Merge (#7989)
Browse files Browse the repository at this point in the history
With The Merge Gnosis Chain is much closer to Ethereum and there's no
need to call AuRa `Initialize`.
  • Loading branch information
yperbasis authored Aug 17, 2023
1 parent cab6d30 commit f82bc1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion consensus/merge/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ func (s *Merge) IsServiceTransaction(sender libcommon.Address, syscall consensus
func (s *Merge) Initialize(config *chain.Config, chain consensus.ChainHeaderReader, header *types.Header,
state *state.IntraBlockState, syscall consensus.SysCallCustom,
) {
s.eth1Engine.Initialize(config, chain, header, state, syscall)
if !misc.IsPoSHeader(header) {
s.eth1Engine.Initialize(config, chain, header, state, syscall)
}
if chain.Config().IsCancun(header.Time) {
misc.ApplyBeaconRootEip4788(chain, header, state)
}
Expand Down

0 comments on commit f82bc1d

Please sign in to comment.