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

config: check cltv expiry policy range

Public commit record

What the developer wrote

Authored by ziggie

68/100 · Adequate
config: check cltv expiry policy range

Check configured and advertised forwarding CLTV deltas against max-cltv-expiry
so local configuration and advertised channel policy stay within the same
supported range.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit adds validation checks to make sure a Lightning node's configured CLTV expiry limits and advertised channel policies stay within the same supported range. Previously, a node operator could configure settings that were internally inconsistent or advertise forwarding delays that the node was not actually willing to accept, which could lead to payment routing failures or unexpected channel behavior. The change prevents misconfiguration rather than fixing an active exploit.

Recommended action

Treat as a hardening/configuration-safety improvement. Review related policy and forwarding code to confirm no other paths allow bypassing these bounds, and consider whether the new validation should also apply to existing persisted policies during startup or migration.

Security signals we found

01

Input validation added for configuration and RPC policy parameters

02

Prevents advertised forwarding CLTV delta from exceeding node acceptance limit

03

Prevents local max-cltv-expiry from being set below default time lock delta or above protocol maximum

04

Refactors existing bounds check into shared validators with additional upper-bound consistency check

Risk score

Why this scored 44/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 5/15
Affected reach 8/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.