btc/test: G3 block-production harness (regime-independent FOUND->ASSEMBLED->ACCEPTED) - #379
Merged
Merged
Conversation
…gime-independent) Pin-independent, VM-independent scaffolding for the G3 block-production gate. Drives the won-block path FOUND -> ASSEMBLED -> ACCEPTED across the three share-version regimes (v35 / HYBRID activation-boundary / v36) and asserts the dual-path broadcaster reaches the network in every regime under both a healthy P2P sink and an RPC-only fallback. Locks the load-bearing invariant regime _|_ reaches_network: core:: version_gate governs the SHARE encoding / consensus revision only and must never gate whether a found block reaches the chain. Uses the real version_gate SSOT and the real broadcast_block_with_fallback seam; the terminal ACCEPTED-by-bitcoind leg is modelled by sink fakes and swaps to the live regtest path when VM130 auth lands. Standalone g++ harness in the block_broadcast_test.cpp style -- off the CI allowlist (no #137 NOT_BUILT) until the G2/G3 VM lane is authorized. 18/18 local PASS.
frstrtr
added a commit
that referenced
this pull request
Jun 23, 2026
btc/test: G3 block-production harness (regime-independent FOUND->ASSEMBLED->ACCEPTED)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pin-independent, VM-independent G3 scaffolding per integrator dispatch (msgid 178223181942...).
Drives the won-block path FOUND -> ASSEMBLED -> ACCEPTED across the three share-version regimes (v35 / HYBRID activation-boundary / v36) and asserts the dual-path broadcaster reaches the network in every regime under both a healthy P2P sink and an RPC-only fallback.
Load-bearing invariant locked: regime | reaches_network. core::version_gate governs SHARE encoding / consensus revision ONLY -- it must never gate whether a found block reaches the chain. v35 and v36 wins are equally entitled to hit the network; the harness fails loud if the gate ever leaks into the broadcast outcome.
Build/run:
g++ -std=gnu++20 -I src -I src/btclibs src/impl/btc/test/g3_block_production_test.cpp -o /tmp/g3_block_production_test && /tmp/g3_block_production_test
18/18 local PASS. Fenced to src/impl/btc/test/ (+166/-0). Signed, attribution-clean.