Fixed consensus issue for refunding

* Refund should _always_ go to the origin
This commit is contained in:
obscuren
2015-02-26 18:39:05 +01:00
parent a1c830cd3c
commit e235b57234
6 changed files with 31 additions and 18 deletions

View File

@ -35,7 +35,7 @@ func (self *StateDB) Dump() []byte {
storageIt := stateObject.State.trie.Iterator()
for storageIt.Next() {
account.Storage[ethutil.Bytes2Hex(it.Key)] = ethutil.Bytes2Hex(it.Value)
account.Storage[ethutil.Bytes2Hex(storageIt.Key)] = ethutil.Bytes2Hex(storageIt.Value)
}
world.Accounts[ethutil.Bytes2Hex(it.Key)] = account
}