Skip to content

Commit

Permalink
fix findKeyHeight bug of VerifyHeader (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyinglyh1 committed Jul 20, 2020
1 parent 25887b7 commit 0219c0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func findKeyHeight(native *native.NativeService, height uint32, chainID uint64)
return 0, fmt.Errorf("findKeyHeight, GetKeyHeights error: %v", err)
}
for _, v := range keyHeights.HeightList {
if (height - v) > 0 {
if height > v {
return v, nil
}
}
Expand Down

0 comments on commit 0219c0d

Please sign in to comment.