Skip to content

Add tests and improve documentation for zero reserve channels#873

Open
tankyleo wants to merge 2 commits intolightningdevkit:mainfrom
tankyleo:2026-04-zero-reserve
Open

Add tests and improve documentation for zero reserve channels#873
tankyleo wants to merge 2 commits intolightningdevkit:mainfrom
tankyleo:2026-04-zero-reserve

Conversation

@tankyleo
Copy link
Copy Markdown
Contributor

Follow-up to #853

@ldk-reviews-bot
Copy link
Copy Markdown

ldk-reviews-bot commented Apr 11, 2026

👋 Thanks for assigning @benthecarman as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@tankyleo tankyleo requested review from benthecarman and tnull April 11, 2026 02:00
@tankyleo
Copy link
Copy Markdown
Contributor Author

Let me know how this sounds, is that the testing you had in mind ?

@benthecarman
Copy link
Copy Markdown
Contributor

benthecarman commented Apr 11, 2026

vss tests don't compile but yeah lgtm

@tankyleo tankyleo force-pushed the 2026-04-zero-reserve branch from d3e3e57 to f832421 Compare April 12, 2026 17:54
@tankyleo
Copy link
Copy Markdown
Contributor Author

Fixed the VSS tests, and reworked the documentation wording

@ldk-reviews-bot
Copy link
Copy Markdown

🔔 1st Reminder

Hey @tnull @benthecarman! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

1 similar comment
@ldk-reviews-bot
Copy link
Copy Markdown

🔔 1st Reminder

Hey @tnull @benthecarman! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

.unwrap();
if allow_0reserve {
node_a
.open_0reserve_channel(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine, but should we also assert that we can spend the full channel balance now that both coutnerparties set 0reserve for each other?

/// This channel allows the target node to try to steal your funds with no financial
/// penalty, so this channel should only be opened to nodes you trust.
/// The target node may have nothing at stake if it tries to steal your funds in this
/// channel, so only open this channel to nodes you trust.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That 'only open this channel to nodes you trust' part is odd. There will only be one channel, there isn't the potential to open this one channel to multiple nodes/other nodes, just the one we're opening to...

FWIW, I preferred the previous version honestly.

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.

4 participants