From 6c707504ff3d5988086d4156d87184103dcfce85 Mon Sep 17 00:00:00 2001 From: Matthieu Vachon Date: Mon, 9 Jun 2025 16:38:38 -0400 Subject: [PATCH] Added another logging for self destruct withdraw hunting --- core/state/statedb.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/state/statedb.go b/core/state/statedb.go index b2f97fc729..c5e3a4b91f 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -903,6 +903,8 @@ func (s *StateDB) SelfDestruct(addr common.Address) uint256.Int { if !stateObject.Balance().IsZero() { fmt.Fprintf(os.Stderr, "[Firehose] SelfDestruct: previous balance is non-zero (addr=%s)\n", addr) stateObject.SetBalance(new(uint256.Int)) + } else { + fmt.Fprintf(os.Stderr, "[Firehose] SelfDestruct: previous balance is zero! (addr=%s)\n", addr) } // If it is already marked as self-destructed, we do not need to add it // for journalling a second time.