From faf9e665c7666a73fef569da04db4adf24b7f974 Mon Sep 17 00:00:00 2001 From: Matthieu Vachon Date: Mon, 9 Jun 2025 15:51:38 -0400 Subject: [PATCH] More logging to find the extra withdraw problem --- core/state/statedb.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/state/statedb.go b/core/state/statedb.go index 384e948a46..b2f97fc729 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -887,6 +887,8 @@ func (s *StateDB) SetStorage(addr common.Address, storage map[common.Hash]common // The account's state object is still available until the state is committed, // getStateObject will return a non-nil account after SelfDestruct. func (s *StateDB) SelfDestruct(addr common.Address) uint256.Int { + fmt.Fprintf(os.Stderr, "[Firehose] SelfDestruct called (addr=%s)\n", addr) + stateObject := s.getStateObject(addr) var prevBalance uint256.Int if stateObject == nil { @@ -914,6 +916,8 @@ func (s *StateDB) SelfDestruct(addr common.Address) uint256.Int { } func (s *StateDB) SelfDestruct6780(addr common.Address) (uint256.Int, bool) { + fmt.Fprintf(os.Stderr, "[Firehose] SelfDestruct6780 called (addr=%s)\n", addr) + stateObject := s.getStateObject(addr) if stateObject == nil { fmt.Fprintf(os.Stderr, "[Firehose] SelfDestruct6780: stateObject is nil (addr=%s)\n", addr)