Skip to content

Commit c8f6cc4

Browse files
committed
Add TODO comment
1 parent 21032bc commit c8f6cc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/trie/database.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ func PopulateNodeHashes(n *Node, nodeHashes map[string]struct{}) {
196196

197197
switch {
198198
case len(n.MerkleValue) == 0:
199+
// TODO remove once lazy loading of nodes is implemented
200+
// https://github.com/ChainSafe/gossamer/issues/2838
199201
panic(fmt.Sprintf("node with key 0x%x has no Merkle value computed", n.Key))
200202
case len(n.MerkleValue) < 32:
201203
// Inlined node where its Merkle value is its

0 commit comments

Comments
 (0)