From 7da308c1e170841e69573ab8d9def877b6738a03 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Wed, 14 Dec 2022 08:56:46 -0600 Subject: [PATCH] fix RBF detection --- backend/src/api/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/common.ts b/backend/src/api/common.ts index 18961d188..9b647c5b4 100644 --- a/backend/src/api/common.ts +++ b/backend/src/api/common.ts @@ -59,7 +59,7 @@ export class Common { && addedTx.feePerVsize > deletedTx.feePerVsize // Spends one or more of the same inputs && deletedTx.vin.some((deletedVin) => - addedTx.vin.some((vin) => vin.txid === deletedVin.txid)); + addedTx.vin.some((vin) => vin.txid === deletedVin.txid && vin.vout === deletedVin.vout)); }); if (foundMatches) { matches[deletedTx.txid] = foundMatches;