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

rpc: Fix tx.height range queries #2899

Merged
merged 2 commits into from
Nov 27, 2018
Merged

rpc: Fix tx.height range queries #2899

merged 2 commits into from
Nov 27, 2018

Conversation

melekes
Copy link
Contributor

@melekes melekes commented Nov 22, 2018

Modify lookForHeight to return a height only there's a equal operator. Previously, it was returning a height even for range conditions: "height < 10000".

Fixes #2759

  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

@melekes melekes changed the title only return height if there's an "height = XXX" condition rpc: Fix tx.height range queries Nov 22, 2018
Modify lookForHeight to return a height only there's a equal operator.
Previously, it was returning a height even for range conditions: "height
< 10000".

Fixes #2759
@codecov-io
Copy link

codecov-io commented Nov 22, 2018

Codecov Report

❗ No coverage uploaded for pull request base (develop@99b9c9b). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff             @@
##             develop    #2899   +/-   ##
==========================================
  Coverage           ?   62.85%           
==========================================
  Files              ?      212           
  Lines              ?    17333           
  Branches           ?        0           
==========================================
  Hits               ?    10894           
  Misses             ?     5529           
  Partials           ?      910
Impacted Files Coverage Δ
state/txindex/kv/kv.go 75.21% <0%> (ø)

@melekes melekes self-assigned this Nov 27, 2018
@ebuchman ebuchman merged commit 9570ac4 into develop Nov 27, 2018
@ebuchman ebuchman deleted the 2759-cannot-search-tags branch November 27, 2018 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants