Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace LDK trusted 0-anchor reserve peers with 0 per channel reserve #1069

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Feb 6, 2025

Closes #1065

This PR stops requiring all users to trust the LSPs to correctly return the correct amount on channel closure (which when channels are closed due to stuck payments they do not), and instead allow the user to choose whether or not they will protect themselves or trust the counterparty. It introduces one extra warning icon to the UI but I think this is important for users to understand.

Tests in mutinynet:

  • Existing channels are unaffected
  • New channels with no on-chain balance are still opened successfully.

image

image

image

@rolznz rolznz merged commit 7f1408e into master Feb 6, 2025
10 checks passed
@rolznz rolznz deleted the fix/remove-trusted-0-anchor-amount-peers branch February 6, 2025 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set PerChannelReserveSats rather than TrustedPeersNoReserve
2 participants