mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 16:02:38 +00:00
test: check IBD insufficient work disconnect of outbound peers #36426
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!36426
Loading…
Reference in a new issue
No description provided.
Delete branch "test-minchainwork-outbound-disconnect"
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?
While in IBD, outbound peers (full-relay and block-relay-only) whose headers chain has less work than
nMinimumChainWorkare disconnected. This behavior was not covered by any test, since the functional tests only connect nodes to each other via manual connections, and the default minimum chain work is zero.This adds a test case that restarts node2 with a higher
-minimumchainworkand check that both outbound-full-relay and block-relay-only peers serving headers below it are disconnected, while inbound and manual peers are not.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.Base:
c8e852d3a02a73d473228232148163cdbc8f7bb0Head:
c502b65c007bce1a5d9c6399e836b5372eef3399No verified findings are available from this partial review.
Review coverage was incomplete. The archaeology review had incomplete evidence. The adversarial_glm review did not complete.
Full review report
lgtm ACK
c502b65c00Just a stupid nit, feel free to ignore.
nit: I prefer named args for integral-like literals for clarity
ACK c502b65
Thanks for adding this coverage. It makes sense to add, and I was able to run it locally successfully.
ACK
c502b65c00