File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -289,8 +289,11 @@ func validateRangeChangeProof(
289
289
// [startProof] is an inclusion/exclusion proof of [start]
290
290
startProofKey = maybe .Bind (start , ToKey )
291
291
292
- // [endProof] is an inclusion of the largest key in [keyValues],
293
- // or an exclusion proof of [end] if [keyValues] is empty.
292
+ // [endProof] is an inclusion of the largest key in [keyValues].
293
+ //
294
+ // If [keyValues] is empty:
295
+ // - range proof: an exclusion proof of [end]
296
+ // - change proof: an inclusion/exclusion proof of [end].
294
297
endProofKey = maybe .Bind (end , ToKey )
295
298
)
296
299
@@ -902,6 +905,7 @@ func addPathInfo(
902
905
903
906
// Add [proofNode]'s children which are outside the range
904
907
// [insertChildrenLessThan, insertChildrenGreaterThan].
908
+ // What is inside the range, should be included in provided key-values.
905
909
for index , childID := range proofNode .Children {
906
910
var compressedKey Key
907
911
if existingChild , ok := n .children [index ]; ok {
You can’t perform that action at this time.
0 commit comments