diff --git a/core/state/change_set_writer.go b/core/state/change_set_writer.go index 307960a3b37..729afc2477c 100644 --- a/core/state/change_set_writer.go +++ b/core/state/change_set_writer.go @@ -90,7 +90,7 @@ func accountsEqual(a1, a2 *accounts.Account) bool { func (w *ChangeSetWriter) UpdateAccountData(address libcommon.Address, original, account *accounts.Account) error { if TraceLog { - fmt.Printf("balance,%x,%d\n", address, &account.Balance) + fmt.Printf("account,%x,%d,%d,%d\n", address, account.Nonce, &account.Balance, account.Incarnation) } if !accountsEqual(original, account) || w.storageChanged[address] { w.accountChanges[address] = originalAccountData(original, true /*omitHashes*/) @@ -100,7 +100,7 @@ func (w *ChangeSetWriter) UpdateAccountData(address libcommon.Address, original, func (w *ChangeSetWriter) UpdateAccountCode(address libcommon.Address, incarnation uint64, codeHash libcommon.Hash, code []byte) error { if TraceLog { - fmt.Printf("code,%x,%x\n", address, code) + fmt.Printf("code,%x,%d,%x\n", address, incarnation, code) } return nil } @@ -118,7 +118,7 @@ func (w *ChangeSetWriter) DeleteAccount(address libcommon.Address, original *acc func (w *ChangeSetWriter) WriteAccountStorage(address libcommon.Address, incarnation uint64, key *libcommon.Hash, original, value *uint256.Int) error { if TraceLog { - fmt.Printf("storage,%x,%x,%x\n", address, *key, value.Bytes()) + fmt.Printf("storage,%x,%d,%x,%x\n", address, incarnation, *key, value.Bytes()) } if *original == *value { return nil