Skip to content

Commit

Permalink
Add TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Nov 2, 2022
1 parent 21032bc commit c8f6cc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/trie/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8f6cc4

Please sign in to comment.