Skip to content

Commit

Permalink
Fix version checking in balloon consistency query
Browse files Browse the repository at this point in the history
  • Loading branch information
gdiazlo committed Apr 10, 2019
1 parent db80337 commit e3c511b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions balloon/balloon.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,7 @@ func (b Balloon) QueryConsistency(start, end uint64) (*IncrementalProof, error)
stats.AddFloat("QueryConsistency", 1)
var proof IncrementalProof

if start >= b.version ||
end >= b.version ||
start >= end {

if start >= b.version || end >= b.version || start > end {
return nil, errors.New("unable to process proof from history tree: invalid range")
}

Expand Down

0 comments on commit e3c511b

Please sign in to comment.