From c8f6cc40c9c69ab4da2fecb57b95fc923cef96eb Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Wed, 2 Nov 2022 15:50:33 +0000 Subject: [PATCH] Add TODO comment --- lib/trie/database.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/trie/database.go b/lib/trie/database.go index 78120867a0..c2ca4bde70 100644 --- a/lib/trie/database.go +++ b/lib/trie/database.go @@ -196,6 +196,8 @@ func PopulateNodeHashes(n *Node, nodeHashes map[string]struct{}) { switch { case len(n.MerkleValue) == 0: + // TODO remove once lazy loading of nodes is implemented + // https://github.com/ChainSafe/gossamer/issues/2838 panic(fmt.Sprintf("node with key 0x%x has no Merkle value computed", n.Key)) case len(n.MerkleValue) < 32: // Inlined node where its Merkle value is its