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
  • Loading branch information
gballet committed Jul 11, 2023
1 parent 5605a48 commit 2e06387
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 _ = range group {
// Append one nil value per key in this missing stem
pe.Vals = append(pe.Vals, nil)
}
continue
}

Expand Down

0 comments on commit 2e06387

Please sign in to comment.