terra-money / classic-core

GO implementation of the Terra Protocol
https://www.terra.money
Other
978 stars 286 forks source link

[BUG] /cosmos/tx/v1beta1/txs only return 100 txs #818

Closed Notation closed 9 months ago

Notation commented 10 months ago

Describe the bug /cosmos/tx/v1beta1/txs only return 100 txs even there are more txs in block.

To Reproduce Take 15493371 for example, there are 123 txs in this block. The following command shows tx count returned by /cosmos/tx/v1beta1/txs

curl -X GET "http://YOUR_NODE:1317/cosmos/tx/v1beta1/txs?events=tx.height=15493371" -H "accept: application/json"  | grep txhash  | wc -l

which expected to be 123 but actually got 100. Pagination is no use:

curl -X GET "http://YOUR_NODE:1317/cosmos/tx/v1beta1/txs?events=tx.height%3D15493371&pagination.limit=200"  -H "accept: application/json" | grep txhash | wc -l

Context & versions terrad version 2.3.0

(if applicable) suggested solution Maybe pagination is missing, something wrong with CosmosSDK? KAVA node also has this issue.