def __init__(self, db, root_hash=BLANK_ROOT_HASH, read_only=False): if read_only: self.db = TrackedDB(ImmutableDB(db)) else: self.db = TrackedDB(db) self._trie = HashTrie(HexaryTrie(self.db, root_hash))
def __init__(self, db, root_hash=BLANK_ROOT_HASH, read_only=False): if read_only: self.db = ImmutableDB(db) else: self.db = db self._trie = HashTrie(Trie(self.db, root_hash))