doc(btc): update note

Co-authored-by: Gaze <dev@gaze.network>
This commit is contained in:
Gaze
2024-04-13 22:25:47 +07:00
parent 0c13ae9675
commit 2b374e83eb

View File

@@ -73,7 +73,7 @@ func (i *BitcoinIndexer) process(ctx context.Context) (err error) {
continue
}
// validate reorg from prev current block
// validate reorg from current block
if blocks[0].Header.Height == i.currentBlock.Height {
currentBlockHeader := blocks[0].Header
if !currentBlockHeader.Hash.IsEqual(&i.currentBlock.Hash) {