mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
refactor: deduplicate block validation state catcher #36469
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!36469
Loading…
Reference in a new issue
No description provided.
Delete branch "08_10_deduplicate_submit"
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 mentioned in https://github.com/bitcoin/bitcoin/pull/34644#discussion_r2889315162 and https://github.com/bitcoin/bitcoin/pull/35675#discussion_r360301816, the validation state catchers were defined in the block template manager,
submitblockrpc and mining test helpers, even though they do the same thing.Moved this helper into
node/block_validation_state_catcher.hand reuse it across all three callers. An optional validation state replaces the separatefoundflag where used, preserving each caller's registration and result handlingReplaces #36389 with the same commit on a dedicated branch.
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.
LLM Linter (✨ experimental)
Possible places where named args for integral literals may be used (e.g.
func(x, /*named_arg=*/0)in C++, andfunc(x, named_arg=0)in Python):src/test/util/mining.cpp:ProcessNewBlock(block, true, true, &new_block)2026-10-08 15:06:00
Concept ACK
Base:
8ad7e25d1fffb086692c0e17ed168838dde6e66fHead:
c9cccf6d68c682e533876b4450f5ad7044a79f10Findings
Major
The
nodeparameter shadows the namespace (src/test/util/mining.cpp:144, head)In
ProcessBlock, the parameter namednodemakesnode::BlockValidationStateCatcherresolve to the local parameter rather than the namespace, causing compilation to fail for targets that build this test utility. Qualify the namespace as::node::BlockValidationStateCatcheror rename the parameter.Review coverage was incomplete. adversarial_glm: Initial repository exploration complete: located the new header and all three modified files.
Full review report
Concept ACK
5852e3d35aConcept ACK
ACK
c9cccf6d68dedup is clean.
review ACK
c9cccf6d68🖋Show signature
Signature:
ACK
c9cccf6d68ACK
c9cccf6d68