This commit is contained in:
b00ris 2020-01-08 20:02:24 +03:00 committed by ledgerwatch
parent 29145a8b7d
commit aa5757a84a
2 changed files with 2 additions and 1 deletions

View File

@ -1150,7 +1150,7 @@ func TestWrongIncarnation2(t *testing.T) {
t.Fatal(err)
}
if acc.Incarnation != state.NonContractIncarnation {
t.Fatal("wrong incarnation")
t.Fatal("wrong incarnation", acc.Incarnation)
}
}

View File

@ -534,6 +534,7 @@ func (a *Account) DecodeForHashing(enc []byte) error {
func (a *Account) DecodeForStorage(enc []byte) error {
a.Initialised = true
a.Nonce = 0
a.Incarnation = 0
a.Balance.SetInt64(0)
a.Root = emptyRoot
a.CodeHash = emptyCodeHash