Skip to content

Commit

Permalink
fix: after keyvals param removal, GetProofItem returns one nil value …
Browse files Browse the repository at this point in the history
…per stem (#376)

* fix: after keyvals param removal, GetProofItem returns one nil value per stem

* review feedback
  • Loading branch information
gballet authored Jul 11, 2023
1 parent 5605a48 commit e8712ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,10 @@ func (n *InternalNode) GetProofItems(keys keylist) (*ProofElements, []byte, [][]
// repeated as many times? It would be wasteful, so the
// decoding code has to be aware of this corner case.
esses = append(esses, extStatusAbsentEmpty|((n.depth+1)<<3))
pe.Vals = append(pe.Vals, nil)
for i := 0; i < len(group); i++ {
// Append one nil value per key in this missing stem
pe.Vals = append(pe.Vals, nil)
}
continue
}

Expand Down

0 comments on commit e8712ad

Please sign in to comment.