Commit 2fc1d517 authored by George Hotz's avatar George Hotz

working, but needs internet

parent ba0a85a5
......@@ -43,7 +43,7 @@ func (db *Database) ContractCodeSize(addrHash common.Hash, codeHash common.Hash)
// OpenStorageTrie opens the storage trie of an account.
func (db *Database) OpenStorageTrie(addrHash, root common.Hash) (Trie, error) {
return SimpleTrie{}, nil
return SimpleTrie{db.BlockNumber, db.StateRoot}, nil
}
type LeafCallback func(paths [][]byte, hexpath []byte, leaf []byte, parent common.Hash) error
......
......@@ -87,6 +87,7 @@ func NewStateDB(header types.Header) *StateDB {
stateRoot: header.Root,
db: Database{BlockNumber: header.Number, StateRoot: header.Root},
trie: SimpleTrie{BlockNumber: header.Number, StateRoot: header.Root},
journal: newJournal(),
accessList: newAccessList(),
logs: make(map[common.Hash][]*types.Log),
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment