quell zero-tree message

This commit is contained in:
Guillaume Ballet 2023-08-16 17:10:32 +02:00
parent b4c3b59a85
commit b7648a503e

View file

@ -365,8 +365,9 @@ func (db *cachingDB) openStorageMPTrie(stateRoot common.Hash, address common.Add
// OpenStorageTrie opens the storage trie of an account
func (db *cachingDB) OpenStorageTrie(stateRoot common.Hash, address common.Address, root common.Hash, self Trie) (Trie, error) {
// TODO this should only return a verkle tree
if db.ended {
mpt, err := db.openStorageMPTrie(common.Hash{}, address, common.Hash{}, self)
mpt, err := db.openStorageMPTrie(types.EmptyRootHash, address, common.Hash{}, self)
if err != nil {
return nil, err
}