fix: wrong condition for non-OP_RETURN output

This commit is contained in:
Gaze
2024-04-17 22:42:56 +07:00
parent 1ce88ddcb4
commit 0c7399dd4c

View File

@@ -235,7 +235,7 @@ func (p *Processor) processTx(ctx context.Context, tx *types.Transaction, blockH
// if no pointer is provided, use the first non-OP_RETURN output
if pointer == nil {
for i, txOut := range tx.TxOut {
if txOut.IsOpReturn() {
if !txOut.IsOpReturn() {
pointer = lo.ToPtr(uint64(i))
break
}