Skip to content

Commit

Permalink
fix: removed abandon payment logic, happens automatically as of LDK 0…
Browse files Browse the repository at this point in the history
….0.114
  • Loading branch information
Jasonvdb committed Nov 13, 2023
1 parent 05f47d6 commit e0e8e68
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/src/lightning-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,17 +473,6 @@ class LightningManager {
return this.handleStartError(channelManagerRes);
}

// Attempt to abandon any stored payment ids.
const paymentIds = await this.getLdkPaymentIds();
if (paymentIds.length) {
await Promise.all(
paymentIds.map(async (paymentId) => {
await ldk.abandonPayment(paymentId);
await this.removeLdkPaymentId(paymentId);
}),
);
}

//Force close all channels on startup. Likely to recover funds after restoring from a stale backup.
if (forceCloseOnStartup && forceCloseOnStartup.forceClose) {
await ldk.forceCloseAllChannels(forceCloseOnStartup.broadcastLatestTx);
Expand Down

0 comments on commit e0e8e68

Please sign in to comment.