-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
C:rpcComponent: JSON RPC, gRPCComponent: JSON RPC, gRPCT:bugType Bug (Confirmed)Type Bug (Confirmed)
Milestone
Description
Tendermint version (use tendermint version or git rev-parse --verify HEAD if installed from source):
0.25.0-0c9c3292
Environment: LotionJS
- OS (e.g. from /etc/os-release): Linux
- Install tools: npm
What happened:
Issuing a query with an inequality comparison for tx.height results in a string comparison. Specific example is the following query:
tx_search?query="event='value' AND tx.height>=15"
results in matches:
15, 15545, 15555, 151808...
and the following query
tx_search?query="event='value' AND tx.height<100000"
returns an empty array []
What this means is that every attempt to query for tags within a range (which by definition includes a > and < operator) will return an empty array.
What you expected to happen:
tx.height should be compared as an integer so tags can be queried in a range of blocks. It appears that tx.height is stored as a string in the transaction which is perhaps the underlying problem:
{
"hash": "75B0775C6003225B456F1975817DADB97B00F90A",
"height": "154248",
"index": 0,
...
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C:rpcComponent: JSON RPC, gRPCComponent: JSON RPC, gRPCT:bugType Bug (Confirmed)Type Bug (Confirmed)