AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 31 Bitcoin

Add `ChannelManager::create_channel_to_trusted_peer_0reserve`

Public commit record

What the developer wrote

Authored by Leo Nash

55/100 · Thin
Add `ChannelManager::create_channel_to_trusted_peer_0reserve`

This new method sets 0-reserve for the channel accepter.
✓ Specific, descriptive subject✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit adds a new, clearly labeled API for opening Lightning channels to a trusted peer where the counterparty is allowed to keep zero reserve funds. The reserve normally prevents a peer from spending their entire balance, which protects against a specific cheap attack. The new method removes that protection intentionally, so it is only safe with a trusted counterparty. The commit itself documents this risk and does not appear to be a hidden vulnerability.

Recommended action

Treat this as a feature addition with inherent security trade-offs rather than a vulnerability. Users should be warned (via documentation and release notes) to only call `create_channel_to_trusted_peer_0reserve` with mutually trusted peers, because removing the reserve eliminates economic deterrence against revoked commitment broadcasts. No code revert is indicated by the diff evidence.

Security signals we found

01

New API explicitly enables zero channel reserve for the counterparty

02

Documentation acknowledges counterparty can force-close with revoked commitment 'for free'

03

Validation relaxed: dust-limit vs. reserve check skipped when reserve is zero

04

Minimum channel reserve safety check bypassed only under the new trusted flag

05

Existing default channel creation path remains unchanged

Risk score

Why this scored 31/100

Our methodology →
Potential impact 8/30
Exploitability 5/25
Stealth signal 3/15
Affected reach 4/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.