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

Reject `start_batch` with size <= 1 (#3333)

Public commit record

What the developer wrote

Authored by Bastien Teinturier

76/100 · Adequate
Reject `start_batch` with size <= 1 (#3333)

Bolt2 specifies that a receiving node:

```
If batch_size is not strictly greater than 1:
- MUST ignore the start_batch message.
- SHOULD send a warning.
```
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit tightens validation of a Lightning network peer message called start_batch. Previously, the software only rejected batch sizes larger than 20. Now it also rejects batch sizes of 0 or 1, which the protocol specification says must be ignored with a warning. The change is a standards-compliance fix; it does not by itself look like a critical vulnerability, but it removes a case where a peer could request a meaningless batch and the node would accept it.

Recommended action

No urgent action required beyond normal patching. Node operators should update to include this commit to remain BOLT 2 compliant. Reviewers may want to confirm that other start_batch edge cases (e.g., non-commit_sig message types) are handled consistently with the specification.

Security signals we found

01

Protocol compliance fix for BOLT 2 start_batch validation

02

Adds lower-bound validation that was previously missing

03

Prevents acceptance of degenerate batch sizes (0, 1)

04

Sends a Warning message to the peer as required by spec

Risk score

Why this scored 25/100

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