bnb-chain/bnc-tendermint

tx index missing for first block after node restart

ackratos opened this issue · 1 comments

if endblocker panic on height 100 during consensus execution, we stop and restart node, we cannot query txs?tag=tx.height=100 after restart... (but previous and later txs are correctly indexed)

a tendermint bug reported, I will fix on both our side and tendermint:
tendermint/tendermint#3186

Before fix it, we should be caution when we restart explorer node: if it is crashed during endblock (after block has been written to block store), we need reset one block to make sure txs on broken block are indexed.