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

Add missing `OffersMessageHandler::best_block` updating

Public commit record

What the developer wrote

Authored by Matt Corallo

85/100 · Strong
Add missing `OffersMessageHandler::best_block` updating

It seems we forgot to ensure `OffersMessageHandler::best_block` is
consistently updated, leading to us building invalid blinded
payment paths for short-lived payment paths after two weeks without
restart.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
The short version

What changed, and why it matters

This commit fixes a bug where a piece of data called `best_block` was not being updated when new blocks arrived. This data is used when creating private, one-time Lightning payment routes. If it goes stale for more than two weeks, the software could build payment routes that other nodes consider expired or invalid, causing payments to fail. The fix simply updates `best_block` whenever a new block is seen.

Recommended action

Upgrade to a release containing this commit if you run a long-lived LDK node that processes BOLT 12 offers. Until patched, a node restart refreshes `best_block`, so scheduled restarts within two weeks can mitigate the issue. Monitor for failed BOLT 12 payments with invalid-blinded-path errors.

Security signals we found

01

Missing state update in chain-tip handler

02

Potential construction of invalid/expired blinded payment paths

03

Payment path validity depends on fresh best-block data

04

Bug window: approximately two weeks without restart

05

No explicit authentication/authorization bypass

Risk score

Why this scored 59/100

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