sei-chain
sei-chain copied to clipboard
[BUG] Missing transaction in my full node.
Seid version
name: sei
server_name: <appd>
version: 3.5.0
commit: ff7ca2c516aa53652459cd1fa9f71cf014c6d81e
build_tags: netgo ledger,
go: go version go1.18.1 linux/amd64
build_deps:
- filippo.io/[email protected]
- github.com/99designs/[email protected]
- github.com/CosmWasm/[email protected] => github.com/sei-protocol/[email protected]
Chain ID atlantic-2
Describe the bug My node is syncing with the atlantic-2 network, and my node often lags behind. Therefore, I am using auto restart after behind 300 blocks. And I am using state sync for my node.
I find out some blocks have transactions in cosmos/base/tendermint/v1beta1/blocks/xxxxx
api, but cosmos/tx/v1beta1/txs?events=tx.height=xxxxx
returns no transaction.
Do you know why this issue happens? And what should I do to help my node have all transactions for blocks.
Yeah, this is a bug in cosmos sdk where during restart there might be some transactions not getting correctly indexed, leading to missing transactions. So if you restart very often, you will see this more frequently happen. There isn't any long term fix yet, but there's a workaround by following this guide: https://github.com/sei-protocol/sei-chain/tree/main/tools
The step is to:
- Use the tx-scanner tool to scan missing transactions
- Stop seid process
- Run tendermint command to reindex the missing tx events
we have also fixed this in the binary itself for future txs https://github.com/sei-protocol/sei-tendermint/commits/main/?author=yzang2019 - thanks @yzang2019 for the fix