Fixing bug where RBF wasn't detected when using bitcoind

This commit is contained in:
softsimon 2022-03-08 18:08:53 +01:00
parent f85771e03f
commit b15de021f7
No known key found for this signature in database
GPG key ID: 488D7DCFB5A430D7

View file

@ -358,7 +358,7 @@ class WebsocketHandler {
const rbfTx = rbfTransactions[rbfTransaction];
if (config.MEMPOOL.BACKEND !== 'esplora') {
try {
const fullTx = await transactionUtils.$getTransactionExtended(rbfTransaction, true);
const fullTx = await transactionUtils.$getTransactionExtended(rbfTx.txid, true);
response['rbfTransaction'] = fullTx;
} catch (e) {
logger.debug('Error finding transaction in mempool: ' + (e instanceof Error ? e.message : e));