Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
codchen committed Jun 10, 2024
1 parent d1c499c commit 26c91e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions x/evm/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ func (server msgServer) EVMTransaction(goCtx context.Context, msg *types.MsgEVMT
gp := server.GetGasPool()

defer func() {
defer stateDB.Cleanup()
if pe := recover(); pe != nil {
stateDB.Cleanup()
// there is not supposed to be any panic (except from OCC)
// there is not supposed to be any panic
debug.PrintStack()
ctx.Logger().Error(fmt.Sprintf("EVM PANIC: %s", pe))
telemetry.IncrCounter(1, types.ModuleName, "panics")
Expand Down
6 changes: 0 additions & 6 deletions x/evm/state/accesslist.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func (s *DBImpl) SlotInAccessList(addr common.Address, slot common.Hash) (addres
func (s *DBImpl) AddAddressToAccessList(addr common.Address) {
s.k.PrepareReplayedAddr(s.ctx, addr)
al := s.getCurrentAccessList()
defer s.saveAccessList(al)
if _, present := al.Addresses[addr]; present {
return
}
Expand All @@ -66,7 +65,6 @@ func (s *DBImpl) AddAddressToAccessList(addr common.Address) {
func (s *DBImpl) AddSlotToAccessList(addr common.Address, slot common.Hash) {
s.k.PrepareReplayedAddr(s.ctx, addr)
al := s.getCurrentAccessList()
defer s.saveAccessList(al)
idx, addrPresent := al.Addresses[addr]
if !addrPresent || idx == -1 {
// Address not present, or addr present but no slots there
Expand Down Expand Up @@ -113,7 +111,3 @@ func (s *DBImpl) Prepare(_ params.Rules, sender, coinbase common.Address, dest *
func (s *DBImpl) getCurrentAccessList() *accessList {
return s.tempStateCurrent.transientAccessLists
}

func (s *DBImpl) saveAccessList(al *accessList) {
// s.tempStateCurrent.transientAccessLists = al
}

0 comments on commit 26c91e6

Please sign in to comment.