dgb(phase-b): wire build_connection_coinbase to PPLNS->coinbase SSOT (producer seam) - #331
Closed
frstrtr wants to merge 1 commit into
Closed
dgb(phase-b): wire build_connection_coinbase to PPLNS->coinbase SSOT (producer seam)#331frstrtr wants to merge 1 commit into
frstrtr wants to merge 1 commit into
Conversation
…via producer seam Replace the empty build_connection_coinbase() stub with a delegation to build_connection_coinbase_from_pplns (the #330 SSOT that itself routes through the single compute_pplns_payout_split the verifier calls). A new set_pplns_inputs_fn producer seam supplies the PPLNS weight map (walked from the ShareTracker), ref_hash, subsidy and donation script; the tracker walk stays in main_dgb where the ShareTracker + CoinParams are in scope, so no sharechain logic leaks into the work source. Fenced: while the seam is UNBOUND (or returns nullopt) the method is byte-identical to the pre-wire stub (empty job, no work pushed) -- runtime behavior is unchanged until main_dgb binds the producer (follow-on slice). The emitted coinb1/coinb2 are byte-identical to the verifier per a KAT comparing the wired output to the SSOT called directly with the same inputs. 3 KATs added (empty-until-wired, byte-identical delegation, nullopt->empty); dgb_work_source_test 26/26 green.
frstrtr
force-pushed
the
dgb/pplns-conn-coinbase-wire
branch
from
June 22, 2026 14:17
9cea8b7 to
9d1eac2
Compare
Owner
Author
|
Superseded by #333 (consolidated to master). #329/#330/#331 merged into intermediate stacked bases that never reached master; #333 now carries the full PPLNS delegation end-state (step-1 walk + steps 2-3 verifier + per-connection coinbase + producer seam) as one auditable diff rebased on current master. |
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.
Stacked on #330 (dgb/pplns-conn-coinbase-wire). Replaces the empty build_connection_coinbase() stub in DGBWorkSource with a delegation to build_connection_coinbase_from_pplns — the #330 SSOT that itself routes through the single compute_pplns_payout_split() the verifier (generate_share_transaction) uses. A new set_pplns_inputs_fn producer seam supplies the PPLNS weight map (walked from the ShareTracker), ref_hash, subsidy and donation script.
Design:
Tests: 3 KATs (empty-until-wired; coinb1/coinb2 byte-identical to the SSOT called directly; nullopt->empty). dgb_work_source_test 26/26 green.
NEXT (follow-on): bind set_pplns_inputs_fn in main_dgb to a tracker-sourced lambda (get_v36_decayed_cumulative_weights / get_cumulative_weights under the tracker lock) + freeze merkle_branches/segwit onto the snapshot.