Skip to content

BTC G3b: --tuned mode produces real POPULATED parent+merged block (gate-decoupled) - #479

Merged
frstrtr merged 1 commit into
masterfrom
btc/g3b-tuned-populated
Jun 25, 2026
Merged

BTC G3b: --tuned mode produces real POPULATED parent+merged block (gate-decoupled)#479
frstrtr merged 1 commit into
masterfrom
btc/g3b-tuned-populated

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 25, 2026

Copy link
Copy Markdown
Owner

G3b deliverable is a POPULATED, parent+merged block. The existing harness build_block is coinbase-only with no merged-mining marker, and --live can only ever grind on testnet3 (rig+IBD gated). This adds a --tuned mode that produces the real artifact on an isolated regtest net, decoupled from BOTH gates.

What it does:

  • build_populated_merged(): folds the template mempool txs into the block merkle root (POPULATED, ntx>=2) and writes a 0xfabe6d6d AuxPoW merged-mining commitment into the coinbase (parent+merged).
  • run_tuned(): funds a mempool tx, builds the block, submitblocks to an isolated regtest node, and asserts ACCEPTED + ntx>=2 + mm marker present in the coinbase.

Fail-closed: the node is the oracle; submitblock rejects any malformed block, so this cannot false-green. --dry-run and --live paths are unchanged.

Validation (isolated regtest, VM420):

  • --tuned: ACCEPTED ntx=2 mm_marker=True (PASS), exit 0
  • --dry-run: ALL PASS (no regression), exit 0

Live testnet3 ARM B remains IBD-gated (progress ~0.773, self-clearing) and ARM A rig-gated (#387/#388); this PR unblocks the POPULATED+merged proof without waiting on either. Held for tap; I do not self-merge.

…d block on isolated regtest net

build_block was coinbase-only with no merged-mining marker, so even on a tuned
net it could not exercise G3b parent+merged. Add build_populated_merged() (folds
template mempool txs into the merkle root + a 0xfabe6d6d AuxPoW commitment in the
coinbase) and a --tuned run mode that submitblocks to an isolated regtest node.

Gate-decoupled: no testnet3 IBD and no SHA256d rig needed; the node is the oracle
(submitblock rejects malformed blocks -> fail-closed). Validated on regtest:
ACCEPTED ntx=2 mm_marker=True. --dry-run/--live unchanged.
@frstrtr
frstrtr merged commit 5f442a1 into master Jun 25, 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