fix RBF detection

This commit is contained in:
Mononaut 2022-12-14 08:56:46 -06:00
parent d778530620
commit 7da308c1e1
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -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;