mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:29:40 +00:00
net: unify send pause state #36736
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!36736
Loading…
Reference in a new issue
No description provided.
Delete branch "l0rinc/paused-send-state-cleanup"
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?
Problem: Each peer's send pause state is a flag plus a separate start timestamp.
Message queueing and socket sends each duplicate the transition logic that keeps the two in sync, and the inactivity check (which needs both), reads them separately.
Fix: Move the pause transitions into
CNodeaccessors over one atomic timestamp.The inactivity check then reads the pause status and start time as one snapshot.
Follow-up to #36667.
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:
clang-tidyoptin.performance.Paddingby fanquake)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.
🔵 Suggestion · Paused-send timeout decisions lack focused test coverage
The new accessor test would still pass if the rewritten inactivity check stopped timing out paused peers or used the wrong deadline.
Location:
src/net.cpp:2087(head).Review coverage was incomplete.
Reviewed:
f5feda749552· Full review report · Previous reportspermalink
Concept ACK
Ralph suggested a test for this branch, which has had none since #36667.
The test below fails if the branch is removed or
>is changed to>=.Suggestion
No test fails with this check, the one for blocks below and the one in
ProcessMessagesall removed, and none did before this PR either.The test below fails without any one of the three.
Suggestion
Is that an interesting difference?
No, not by itself. The
>=was only there to show the test checks the timeout too. My point was that this disconnect has no test coverage today.