Skip to content

dgb: pin embedded tx-select feerate-order + weight-cap skip (Phase B FEED conformance) - #277

Merged
frstrtr merged 1 commit into
masterfrom
dgb/tx-select-order-weightcap-kat
Jun 20, 2026
Merged

dgb: pin embedded tx-select feerate-order + weight-cap skip (Phase B FEED conformance)#277
frstrtr merged 1 commit into
masterfrom
dgb/tx-select-order-weightcap-kat

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Phase B FEED conformance: pins the ordering + weight-cap behaviour of the embedded mempool tx selector (get_sorted_txs_with_fees / make_mempool_tx_source) against the p2pool-dgb-scrypt / Core GBT contract.

Two new KATs in dgb_embedded_tx_select_test:

  • EmitsFeerateDescendingOrder — transactions[] emitted highest-feerate-first (m_feerate_index is std::multimap<...,std::greater>), matching the order Core GBT and the p2pool-dgb-scrypt reference consume.
  • WeightCapSkipsHeavyButPacksLighter — an over-cap high-feerate tx is skipped (the loop uses continue, not break) while a lighter, lower-feerate tx below it still packs; total_fees reflects only the packed tx.

Scope: test-only, src/impl/dgb/ only, non-consensus, zero p2pool-merged-v36 surface, GPG-signed. In both build.yml --target allowlists already (existing target). 5/5 green locally.

Profile: fenced auto-merge.

…FEED conformance)

Two KATs over make_mempool_tx_source / get_sorted_txs_with_fees:
- EmitsFeerateDescendingOrder: transactions[] emitted highest-feerate-first
  (m_feerate_index is std::greater-ordered), matching the order Core GBT /
  p2pool-dgb-scrypt consume.
- WeightCapSkipsHeavyButPacksLighter: over-cap high-feerate tx is skipped
  (continue, not break) while a lighter lower-feerate tx below it still packs;
  total_fees reflects only the packed tx.

Test-only, src/impl/dgb/ only, non-consensus, no p2pool-merged-v36 surface.
@frstrtr
frstrtr merged commit 2a3c0c6 into master Jun 20, 2026
29 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