Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36389. ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsReviewers, 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.
2026-09-30 11:50:19 |
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
Move the shared BlockValidationStateCatcher into a dedicated header and reuse it it in the block template manager, submitblock rpc, and mining test helpers Use an optional validation state instead of a separate 'found' flag, preserving each caller's existing result handling
|
Concept ACK |
|
Had opened this on the wrong branch, closing this in favor of #36469 |
c9cccf6 refactor: deduplicate block validation state catcher (Enoch Azariah) Pull request description: As mentioned in #34644 (comment) and #35675 (comment), the validation state catchers were defined in the block template manager, `submitblock` rpc and mining test helpers, even though they do the same thing. Moved this helper into `node/block_validation_state_catcher.h` and reuse it across all three callers. An optional validation state replaces the separate `found` flag where used, preserving each caller's registration and result handling Replaces #36389 with the same commit on a dedicated branch. ACKs for top commit: maflcko: review ACK c9cccf6 🖋 ismaelsadeeq: ACK c9cccf6 sedited: ACK c9cccf6 w0xlt: ACK c9cccf6 Tree-SHA512: ae4bea2f2da9df4350099e5787e7743d07d86acf2c6e6150a9d7b9b659c14c217a07bfd3a0c8c6ee9a75043ff458aec0ea1d01ca86f89f6818866cca377e2318
…cher c9cccf6 refactor: deduplicate block validation state catcher (Enoch Azariah) Pull request description: As mentioned in bitcoin#34644 (comment) and bitcoin#35675 (comment), the validation state catchers were defined in the block template manager, `submitblock` rpc and mining test helpers, even though they do the same thing. Moved this helper into `node/block_validation_state_catcher.h` and reuse it across all three callers. An optional validation state replaces the separate `found` flag where used, preserving each caller's registration and result handling Replaces bitcoin#36389 with the same commit on a dedicated branch. ACKs for top commit: maflcko: review ACK c9cccf6 🖋 ismaelsadeeq: ACK c9cccf6 sedited: ACK c9cccf6 w0xlt: ACK c9cccf6 Tree-SHA512: ae4bea2f2da9df4350099e5787e7743d07d86acf2c6e6150a9d7b9b659c14c217a07bfd3a0c8c6ee9a75043ff458aec0ea1d01ca86f89f6818866cca377e2318
As mentioned in #34644 (comment) and #35675 (comment), 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 handling