dgb: embedded Mempool->shaper->template e2e assembly conformance KAT (Phase B FEED) - #278
Merged
Merged
Conversation
…(Phase B FEED)
The shaper (make_mempool_tx_source) and build_work_template are each
pinned in isolation; nothing pinned that the two seams COMPOSE faithfully.
Add an end-to-end KAT over the production embedded chain: Mempool ->
make_mempool_tx_source() fee-sorted selection -> WorkTemplateInputs ->
build_work_template(), asserting (a) tmpl[transactions] equals the
shaper output byte-for-byte and in feerate-descending order (no
reorder/drop/reshape across the seam), (b) every entry keeps the full
p2pool-dgb-scrypt GBT {data,txid,hash,fee} shape, and (c) the same
selections total_fees folds into tmpl[coinbasevalue] verbatim via the
embedded_coinbase_value SSOT (no double count). Test-only, single-coin,
no src/impl/dgb consensus delta; target already in both build.yml
allowlists.
frstrtr
added a commit
that referenced
this pull request
Jun 23, 2026
…(Phase B FEED) (#278) The shaper (make_mempool_tx_source) and build_work_template are each pinned in isolation; nothing pinned that the two seams COMPOSE faithfully. Add an end-to-end KAT over the production embedded chain: Mempool -> make_mempool_tx_source() fee-sorted selection -> WorkTemplateInputs -> build_work_template(), asserting (a) tmpl[transactions] equals the shaper output byte-for-byte and in feerate-descending order (no reorder/drop/reshape across the seam), (b) every entry keeps the full p2pool-dgb-scrypt GBT {data,txid,hash,fee} shape, and (c) the same selections total_fees folds into tmpl[coinbasevalue] verbatim via the embedded_coinbase_value SSOT (no double count). Test-only, single-coin, no src/impl/dgb consensus delta; target already in both build.yml allowlists. Co-authored-by: frstrtr <frstrtr@users.noreply.github.com>
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.
Phase B FEED conformance. The embedded tx shaper (make_mempool_tx_source) and build_work_template SSOT are each pinned in isolation (dgb_embedded_tx_select_test #277, dgb_template_builder_test). This pins the SEAM BETWEEN them — the full production chain EmbeddedCoinNode wires.
End-to-end KAT (DgbEmbeddedTxSelect.EndToEndTemplateAssemblyConformance): Mempool -> make_mempool_tx_source() fee-sorted selection -> WorkTemplateInputs.transactions + embedded_coinbase_value fold -> build_work_template(), asserting:
Fence: test-only, single-coin, ZERO src/impl/dgb consensus delta. Target dgb_embedded_tx_select_test already in BOTH build.yml --target allowlists (#143 trap avoided). Local: 6/6 green, GPG Good (b63bac2).