Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner committed Oct 10, 2024
1 parent 891d26e commit d7055a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ func decompressEntry(entry *CompressedBatchEntry, lookup []*InnerOp) (*BatchEntr
}

func decompressExist(exist *CompressedExistenceProof, lookup []*InnerOp) (*ExistenceProof, error) {
// when proving non-existence, if we are proving the leftmost key or rightmost key,
// the left existence proof or right existence proof will be nil, so we safely return.
if exist == nil {
return nil, nil
}
Expand Down

0 comments on commit d7055a0

Please sign in to comment.