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

lntest: disable bitcoind v2 P2P transport in itests

Public commit record

What the developer wrote

Authored by Elle Mouton

83/100 · Strong
lntest: disable bitcoind v2 P2P transport in itests

bitcoind v29 attempts a v2 P2P handshake when connecting to the btcd
miner, but btcd doesn't support v2 transport. The handshake times out
after 30s before falling back to v1, which consumes the entire
DefaultTimeout budget and causes flakes in tests that rely on timely
block propagation after reconnecting (e.g. open_channel_reorg_test).

Add -v2transport=0 to both the itest chain backend and the bitcoind
miner backend, matching what the unit test backend already does.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This change only affects internal test setup code. It adds a command-line flag to bitcoind test instances so they use an older version of the Bitcoin peer-to-peer protocol, because the test miner software (btcd) does not yet support the newer protocol. This prevents 30-second handshake timeouts that were making tests flaky. It is not a security fix and does not change production LND behavior.

Recommended action

No security action required. This is a test reliability improvement. Reviewers may optionally verify that the TODO to re-enable v2 transport once btcd supports it is tracked.

Security signals we found

No strong security signals were identified.

Risk score

Why this scored 15/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 10/10
Evidence quality 5/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.