Review report

bitcoin/bitcoin: PR #36752

1 suggestion

Optional improvements

Link

[suggestion] · Functional tests miss the disabled-reconciliation post-VERACK disconnect

The functional tests never send SENDTXRCNCL after VERACK with reconciliation disabled, so they do not protect the behavior added by this PR.

Location: src/net_processing.cpp:4265 (head).

Details and suggested fix

In p2p_sendtxrcncl.py, the disabled-reconciliation section uses PeerNoVerack and only checks that a pre-VERACK message is ignored. The existing post-VERACK disconnect assertion runs after restarting with -txreconciliation enabled. Both cases therefore behave identically with the old and new guard ordering, leaving the new behavior for default-disabled nodes unprotected. Add a case with explicit -txreconciliation=0 that connects an ordinary P2PInterface(), sends create_sendtxrcncl_msg(), and asserts the sendtxrcncl received after verack log and wait_for_disconnect(). The connection helper waits for VERACK and synchronizes with a ping by default, so this exercises the completed-handshake path. Keep the existing pre-VERACK ignore assertion to cover both sides of the handshake boundary.


Coverage details