fix: off by one confirmation

This commit is contained in:
Gaze
2024-04-17 19:46:23 +07:00
parent 4c244e3222
commit 94a40ef9dd

View File

@@ -530,7 +530,7 @@ func (p *Processor) txCommitsToRune(ctx context.Context, tx *types.Transaction,
break
}
// input must be mature enough
confirmations := tx.BlockHeight - prevTx.BlockHeight
confirmations := tx.BlockHeight - prevTx.BlockHeight + 1
if confirmations < runes.RUNE_COMMIT_BLOCKS {
continue
}