Fixed mkdnode & added some tests

This commit is contained in:
obscuren
2015-03-19 10:57:02 +01:00
parent e67d32b467
commit d7ab716eea
8 changed files with 55 additions and 16 deletions

View File

@@ -35,6 +35,7 @@ func (self *StateDB) RawDump() World {
storageIt := stateObject.State.trie.Iterator()
for storageIt.Next() {
fmt.Println("value", storageIt.Value)
account.Storage[common.Bytes2Hex(storageIt.Key)] = common.Bytes2Hex(storageIt.Value)
}
world.Accounts[common.Bytes2Hex(it.Key)] = account