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 4, 2022
1 parent 17c2e6a commit fd8b0c2
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 fd8b0c2

Please sign in to comment.