Skip to content

dgb(phase-b): feed stratum work template from embedded mempool [surface-for-tap] - #322

Merged
frstrtr merged 1 commit into
masterfrom
dgb/phase-b-stratum-template-mempool-feed
Jun 22, 2026
Merged

dgb(phase-b): feed stratum work template from embedded mempool [surface-for-tap]#322
frstrtr merged 1 commit into
masterfrom
dgb/phase-b-stratum-template-mempool-feed

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 22, 2026

Copy link
Copy Markdown
Owner

Phase B pool/share slice. Wires DGBWorkSource::get_current_work_template to feed its served GBT template from the in-process embedded Mempool via the make_mempool_tx_source SSOT (BLOCK_MAX_WEIGHT cap), mirroring the embedded node path (#248). Fee-sorted txs shape transactions[]; their fee total folds into coinbasevalue through the #207 resolve_coinbase_value SSOT.

Byte-identical today: on the current empty embedded mempool the selection yields an empty transactions[] and total_fees=0 -- identical to the prior coinbase-only template. It lights up unchanged once the embedded P2P mempool feed populates the pool.

Fencing: DGB tree only (src/impl/dgb/stratum/work_source.cpp), shared modules untouched. Consensus-VALUE-bearing when the mempool is non-empty -> surfaced for operator tap, NOT auto-merge.

Tests: dgb_share_test 26/26, dgb_block_assembly_test 8/8, dgb_mempool_ingest_test 5/5; c2pool-dgb links clean.

…mpool

Wire DGBWorkSource::get_current_work_template to select fee-sorted mempool
transactions via the make_mempool_tx_source SSOT (BLOCK_MAX_WEIGHT cap),
mirroring the embedded node path (#248). The selection shapes GBT
transactions[] and its fee total folds into coinbasevalue through the #207
resolve_coinbase_value SSOT; the builder passes the array through verbatim.

On the current empty embedded mempool the call yields an empty transactions[]
and total_fees=0 -- byte-identical to the prior coinbase-only template. It
lights up unchanged once the embedded P2P mempool feed populates the pool.
DGB-tree only; shared modules untouched. dgb_share_test 26/26, block_assembly
8/8, mempool_ingest 5/5; c2pool-dgb links.
@frstrtr
frstrtr merged commit aaf5e66 into master Jun 22, 2026
31 checks passed
frstrtr added a commit that referenced this pull request Jun 23, 2026
…pool-feed

dgb(phase-b): feed stratum work template from embedded mempool [surface-for-tap]
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