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

p2p: reject filtered block inv early when bloom is disabled

Public commit record

What the developer wrote

Authored by furszy

85/100 · Strong
p2p: reject filtered block inv early when bloom is disabled

A peer should not request filtered blocks from a node that
does not advertise NODE_BLOOM. Perform this check before
looking up the block to avoid an unnecessary disk read.

Note: currently, the request is ignored only after the
block has been read from disk, in the bloom filter
existence check.
✓ 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 change makes Bitcoin Core disconnect a peer earlier when it asks for a 'filtered block' from a node that does not advertise bloom-filter support. Previously, the node would read the block from disk first and only then ignore the request. Now it rejects the request before doing any disk read. This is mainly a small performance/hardening improvement rather than a serious security fix.

Recommended action

No urgent action needed; this is a minor hardening/performance improvement. Operators and downstream maintainers should include it in normal updates. Reviewers may want to confirm that the new disconnection behavior is consistent with other NODE_BLOOM violations.

Security signals we found

01

Adds early validation of peer request against advertised service bits

02

Disconnects peer on protocol violation instead of silently ignoring after disk I/O

03

Avoids unnecessary disk read for a request that will be rejected anyway

04

Adds regression test for the disconnection behavior

Risk score

Why this scored 28/100

Our methodology →
Potential impact 4/30
Exploitability 3/25
Stealth signal 5/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.