From db8ff7c90203214f594de3e1d410a419f48b1580 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Wed, 16 Aug 2023 17:10:32 +0200 Subject: [PATCH] quell zero-tree message --- core/state/database.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/state/database.go b/core/state/database.go index 7ee8489d3f62..a7a7ef4dd78f 100644 --- a/core/state/database.go +++ b/core/state/database.go @@ -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 }