Old testnet txs not found in tendermint indexer
Describe the Bug
It was reported that for 2 blocks on testnet, eth_getTransactionReceipt is returning null (eg. block https://athens.explorer.zetachain.com/block/911330) . Upon closer look, tx_search json rpc tendermint method is not returning those txs, and this method is used by rpc to further parse tx, therefore bug is not in rpc code. Transactions in block 911332, just 2 blocks after are working fine, so it appears that for some reason just couple of blocks are not indexed in tendermint indexer.
Since this was 1 year ago, and it is testnet, it is not huge priority, as there could be a lot of reasons why indexer missed in testnet phase before mainnet - incomplete or buggy functionality, network upgrades etc.
One of the ways to try to reindex them is to introduce reindex-event command which is currently removed from tendermint/comet. TBD if this is necessary, if its just for couple of old testnet blocks then it is not priority.
To Reproduce
Example transaction from above mentioned block, empty result is returned:
https://zetachain-athens.g.allthatnode.com/archive/tendermint/tx_search?query="ethereum_tx.ethereumTxHash='0x7d02ea99085583a9b360d91bf7956323d64827e70c177cdad4c043920d296f6a'"
Expected Behavior
tx_search should return it, eg for working transaction:
https://zetachain-athens.g.allthatnode.com/archive/tendermint/tx_search?query="ethereum_tx.ethereumTxHash='0x528f1575be118dd6b1219bb3e6af713a9618d3962af73d4b370b31a23edd2e00'"
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- OS
- Version used
to fix your trouble check this solution click maybe this will solve your problem.