dgb: wire c2pool-dgb exe to live chain-score path (exe-wire) - #135
Closed
frstrtr wants to merge 1 commit into
Closed
dgb: wire c2pool-dgb exe to live chain-score path (exe-wire)#135frstrtr wants to merge 1 commit into
frstrtr wants to merge 1 commit into
Conversation
The exe-wire slice repairs c2pool-dgb after #134 replaced the skeleton node.cpp with the real abstract dgb::NodeImpl, orphaning the run_skeleton/network_summary symbols the old stub main linked against. main_dgb.cpp now drives the LIVE score path: it constructs dgb::ShareTracker and calls score() (header-only, #132/#134), reporting the oracle block_period (75s SSOT) the time_span derivation consumes. It never stands up the abstract NodeImpl, so the full pool run-loop is not pulled in. Isolation: the real node.cpp TU references core web_server/stratum, which the core OBJECT lib links unconditionally and which drag in payout/merged/hashrate/ ltc (Phase B self-link tangle; merged = DOGE aux, NOT in the V36 default DGB build). We therefore do NOT compile node.cpp into the exe and do NOT link core. Instead we compile core/uint256.cpp directly and link the btclibs STATIC util lib (HexStr/HexDigit) - pure utility, no pool runtime. Per-coin isolation held; only the c2pool-dgb target changed; sibling coin exes still build.
This was referenced Jun 17, 2026
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 #134 (dgb/node-impl). Repairs c2pool-dgb after #134 swapped the skeleton node.cpp for the real abstract dgb::NodeImpl, orphaning run_skeleton/network_summary.
What it does: main_dgb.cpp drives the LIVE header-only chain-score path — constructs dgb::ShareTracker and calls score() (#132/#134), reporting the oracle block_period (75s SSOT). It does not stand up the abstract NodeImpl.
Isolation: node.cpp (real run-loop TU) references core web_server/stratum, which the core OBJECT lib links unconditionally, dragging in payout/merged/hashrate/ltc (Phase B tangle; merged = DOGE aux, NOT in V36 default DGB). So we do NOT compile node.cpp and do NOT link core. We compile core/uint256.cpp directly + link btclibs STATIC util lib (HexStr/HexDigit). Only the c2pool-dgb target changed; c2pool-btc still builds (verified EXIT=0).
Smoke (end-to-end, not just link):
chain_len=0/hashrate=0 is the empty-verified-set short-chain early-return; the deep block_period multiply runs once a verified chain >= chain_length exists (Phase B fixtures).
HOLD merge — part of the #129->#131->#132->#134->exe-wire batch (operator-gated).