Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jul 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading