Skip to content

btc(g3a): populated-block regtest harness + round-trip assertions - #435

Merged
frstrtr merged 1 commit into
masterfrom
btc/g3a-populated-block
Jun 24, 2026
Merged

btc(g3a): populated-block regtest harness + round-trip assertions#435
frstrtr merged 1 commit into
masterfrom
btc/g3a-populated-block

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 24, 2026

Copy link
Copy Markdown
Owner

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:

  • A1 populated (coinbase + >=5 payload tx, not coinbase-only)
  • A2 coinbase carries segwit witness commitment (6a24aa21a9ed)
  • A3 every witness-bearing tx has txid != wtxid (witness not stripped)
  • A4 types-in == types-survived-roundtrip across all core script types

Live evidence (VM420 .121 regtest):

G3A RESULT: PASS — block 6d88ddd3..e037eb9c1 height=272 txs=6 witness=4
types=[nulldata,pubkeyhash,scripthash,witness_v0_keyhash,witness_v0_scripthash,witness_v1_taproot]

Additive scripts/ only; no consensus/shared-base/build.yml/CMake surface. Off-prod, isolated regtest, self-provisions coins.

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
@frstrtr
frstrtr merged commit 6c95f02 into master Jun 24, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant