Skip to content

Commit

Permalink
adds support for EIP-3651 (warm coinbase) in Prepare method (#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjezek authored Oct 7, 2024
1 parent 938b2f3 commit 19ae39c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions state/carmen.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ func (s *carmenStateDB) Prepare(rules params.Rules, sender, coinbase common.Addr
s.txCtx.AddSlotToAccessList(carmen.Address(el.Address), carmen.Key(key))
}
}
if rules.IsShanghai {
s.txCtx.AddAddressToAccessList(carmen.Address(coinbase))
}
}

func (s *carmenStateDB) AddressInAccessList(addr common.Address) bool {
Expand Down

0 comments on commit 19ae39c

Please sign in to comment.