mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:29:40 +00:00
net_processing: always disconnect for SENDTXRCNCL after VERACK #36752
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36752
Loading…
Reference in a new issue
No description provided.
Delete branch "sendtxrcncl_after_verack"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As mandated by BIP 330:
So, always disconnect such a peer, regardless of the value of
-txreconciliation. Previously the code would ignore and not disconnect such a peer if-txreconciliation=0.The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Conflicts
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
The bip is in draft for ~7 years and this is basically dead code, but it lgtm to be more consistent here
nit: Remove to avoid having to touch this line yet again?
a1b6a7b4502218368556e87029be26e6d7212380...87310779af88aec0233c704350df875284d40f34: do https://github.com/bitcoin/bitcoin/pull/36752#discussion_r4465719122Done, thanks!
🔵 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).Review coverage was incomplete.
Reviewed:
87310779af88· Full review report · Previous reportspermalink
The code is correct before and after this change, but it seems fine to change for negotiation consistency.
I'd say one could even argue that BIP 330 should be changed to adopt the new
featuremsg type for even more consistency?review ACK
87310779af👈Show signature
Signature:
ACK
87310779afSeems fine to me, but would also prefer feature negotiation to actually be done consistently in the future.
Given BIP-330 is draft, as pointed out by @maflcko, I think it'd be worth updating it to use BIP-434 and get rid of the custom negotiation, now that we have a standardized way of doing so.
This can also enable us to move some parts of Erlay as optional and agreed on during feature negotiation, such as extensions.