btc(g3a): populated-block regtest harness + round-trip assertions - #435
Merged
Conversation
Isolated bitcoind regtest greenlight gate G3a: mine ONE block holding a diverse tx mix (P2PKH, P2SH 1-of-2, native P2WPKH/P2WSH, P2SH-P2WPKH, OP_RETURN) and HARD-FAIL assert that every output-script type and all SegWit witness data survive a full serialize->node->deserialize round-trip: A1 block is populated (coinbase + >=5 payload tx, not coinbase-only) A2 coinbase carries the segwit witness commitment (6a24aa21a9ed) A3 every witness-bearing tx has txid != wtxid (witness not stripped/lost) A4 types-in == types-survived-roundtrip across all core script types Additive scripts/ only; no consensus/shared-base/build.yml/CMake surface. Live evidence (VM420 regtest): block 6d88ddd3..e037eb9c1 height=272 txs=6 witness=4 types=[nulldata,pubkeyhash,scripthash,witness_v0_keyhash,witness_v0_scripthash,witness_v1_taproot] -> PASS
This was referenced Jun 24, 2026
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.
BTC v36 greenlight gate G3a — mirrors DGB #431. Mine ONE isolated-regtest block holding a diverse tx mix and HARD-FAIL that every output-script type and all SegWit witness data survive a full serialize->node->deserialize round-trip.
Assertions:
Live evidence (VM420 .121 regtest):
Additive scripts/ only; no consensus/shared-base/build.yml/CMake surface. Off-prod, isolated regtest, self-provisions coins.