More logging to find the extra withdraw problem

This commit is contained in:
Matthieu Vachon 2025-06-09 15:51:38 -04:00
parent dfa4b2cba6
commit faf9e665c7

View file

@ -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)