Skip to content

Commit 93425ef

Browse files
committed
Removed ldk.setTxUnconfirmed from onRegisterTx method in lightning-manager.ts.
1 parent 66eae10 commit 93425ef

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/lightning-manager.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -501,21 +501,6 @@ class LightningManager {
501501
//LDK events
502502

503503
private onRegisterTx(res: TRegisterTxEvent): void {
504-
(async (): Promise<void> => {
505-
// Set new/unconfirmed transaction.
506-
const filterRes = await Promise.all(
507-
this.watchTxs.filter((watchTx) => {
508-
if (watchTx.txid === res.txid) {
509-
return watchTx;
510-
}
511-
}),
512-
);
513-
if (filterRes.length > 0) {
514-
await ldk.setTxUnconfirmed({
515-
txId: res.txid,
516-
});
517-
}
518-
})();
519504
console.log('onRegisterTx: watchTxs', res);
520505
this.watchTxs.push(res);
521506
}

0 commit comments

Comments
 (0)