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

init: ignore empty addnode values

Public commit record

What the developer wrote

Authored by w0xlt

80/100 · Strong
init: ignore empty addnode values

An empty -addnode currently creates an unresolvable added-node record
that is retried indefinitely. Ignore empty values instead, retaining
startup compatibility while avoiding useless records and connection
attempts.

Values consisting of whitespace only are ignored as well. They can only
be passed on the command line, as the config file parser trims them
away, and are just as unresolvable.

The ignored values are logged, so that the option not taking effect is
not silent.
✓ 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 fixes a minor startup bug in Bitcoin Core where an empty -addnode setting (for manually adding network peers) would create a useless peer record that the software tried to connect to over and over. Now empty or whitespace-only values are skipped, and a warning is logged. It is a hardening/cleanup fix rather than a serious security vulnerability.

Recommended action

No urgent action needed. Treat as routine hardening/cleanup. Users can ignore the change; operators using -addnode should ensure they supply valid peer addresses.

Security signals we found

01

Denial-of-service hardening: prevents indefinite retry loop against an invalid added-node target

02

Input validation added for command-line/config argument

03

Logging added for ignored invalid input

Risk score

Why this scored 22/100

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