Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Commit e0e8e68

Browse files
committed
fix: removed abandon payment logic, happens automatically as of LDK 0.0.114
1 parent 05f47d6 commit e0e8e68

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

lib/src/lightning-manager.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -473,17 +473,6 @@ class LightningManager {
473473
return this.handleStartError(channelManagerRes);
474474
}
475475

476-
// Attempt to abandon any stored payment ids.
477-
const paymentIds = await this.getLdkPaymentIds();
478-
if (paymentIds.length) {
479-
await Promise.all(
480-
paymentIds.map(async (paymentId) => {
481-
await ldk.abandonPayment(paymentId);
482-
await this.removeLdkPaymentId(paymentId);
483-
}),
484-
);
485-
}
486-
487476
//Force close all channels on startup. Likely to recover funds after restoring from a stale backup.
488477
if (forceCloseOnStartup && forceCloseOnStartup.forceClose) {
489478
await ldk.forceCloseAllChannels(forceCloseOnStartup.broadcastLatestTx);

0 commit comments

Comments
 (0)