Skip to content

Commit

Permalink
fix(coinjoin): mempool tx not found silent fail
Browse files Browse the repository at this point in the history
(cherry picked from commit 4b41e10)
  • Loading branch information
marekrjpolak authored and komret committed May 22, 2023
1 parent 9d3e026 commit 4265305
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/coinjoin/src/backend/CoinjoinMempoolController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ export class CoinjoinMempoolController implements MempoolController {
})
.map(([txid]) => txid);
await promiseAllSequence(
txids.map(txid => () => this.client.fetchTransaction(txid).then(this.onTx)),
txids.map(
txid => () =>
this.client
.fetchTransaction(txid)
.then(this.onTx)
.catch(() => {}), // Missing txs can be ignored
),
);
this.lastPurge = new Date().getTime();
}
Expand Down

0 comments on commit 4265305

Please sign in to comment.