Skip to content

rpc: Fix tx.height range queries#2899

Merged
ebuchman merged 2 commits intodevelopfrom
2759-cannot-search-tags
Nov 27, 2018
Merged

rpc: Fix tx.height range queries#2899
ebuchman merged 2 commits intodevelopfrom
2759-cannot-search-tags

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 requested a review from ebuchman as a code owner November 22, 2018 12:25
@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
@melekes melekes force-pushed the 2759-cannot-search-tags branch from 8fa2035 to 5f0a12a Compare November 22, 2018 12:28
@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
iKapitonau pushed a commit to scrtlabs/tendermint that referenced this pull request Jul 10, 2024
… (#2901)

Follow-up to tendermint#2841

---

#### PR checklist

- [x] Tests written/updated
- [ ] ~~Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)~~
- [ ] ~~Updated relevant documentation (`docs/` or `spec/`) and code
comments~~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request tendermint#2899 done by
[Mergify](https://mergify.com).

Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
cboh4 pushed a commit to scrtlabs/tendermint that referenced this pull request Apr 7, 2025
… (tendermint#2902)

Follow-up to tendermint#2841

---

#### PR checklist

- [x] Tests written/updated
- [ ] ~~Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)~~
- [ ] ~~Updated relevant documentation (`docs/` or `spec/`) and code
comments~~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request tendermint#2899 done by
[Mergify](https://mergify.com).

Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
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.

3 participants