mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
More logging to find the extra withdraw problem
This commit is contained in:
parent
dfa4b2cba6
commit
faf9e665c7
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
// The account's state object is still available until the state is committed,
|
||||||
// getStateObject will return a non-nil account after SelfDestruct.
|
// getStateObject will return a non-nil account after SelfDestruct.
|
||||||
func (s *StateDB) SelfDestruct(addr common.Address) uint256.Int {
|
func (s *StateDB) SelfDestruct(addr common.Address) uint256.Int {
|
||||||
|
fmt.Fprintf(os.Stderr, "[Firehose] SelfDestruct called (addr=%s)\n", addr)
|
||||||
|
|
||||||
stateObject := s.getStateObject(addr)
|
stateObject := s.getStateObject(addr)
|
||||||
var prevBalance uint256.Int
|
var prevBalance uint256.Int
|
||||||
if stateObject == nil {
|
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) {
|
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)
|
stateObject := s.getStateObject(addr)
|
||||||
if stateObject == nil {
|
if stateObject == nil {
|
||||||
fmt.Fprintf(os.Stderr, "[Firehose] SelfDestruct6780: stateObject is nil (addr=%s)\n", addr)
|
fmt.Fprintf(os.Stderr, "[Firehose] SelfDestruct6780: stateObject is nil (addr=%s)\n", addr)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue