Skip to content

dgb: #82 arm2 — bind sharechain m_on_block_found to won-block dispatcher - #205

Merged
frstrtr merged 1 commit into
masterfrom
dgb/82-arm2-pool-relay
Jun 19, 2026
Merged

dgb: #82 arm2 — bind sharechain m_on_block_found to won-block dispatcher#205
frstrtr merged 1 commit into
masterfrom
dgb/82-arm2-pool-relay

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Wires the sharechain (pool) won-block arm of #82 dual-path broadcaster in main_dgb.cpp --run.

  • tracker().m_on_block_found = make_on_block_found(reconstruct, P2pRelaySink{}, &coin_node) — a pool-found parent block now routes through broadcast_won_block instead of being silently dropped (the dgb: v36 donation version-gate (pillar 4 of modern-layer activation) #82 root cause).
  • coin_node seam hoisted above p2p_node so it outlives the tracker callback; shared with the existing Stratum submit arm.
  • reconstruct is the documented interim: returns nullopt with a loud [DGB-POOL-BLOCK] log — won share announced/audited, no malformed block emitted. Faithful reconstruct_won_block + embedded P2pRelaySink land with the Phase B embedded template builder.

#82 stays OPEN per integrator guardrail (2): won-block-reaches-network is proven only via the live external-digibyted submitblock fallback (Stratum arm), NOT this binding alone.

Fenced to src/c2pool/main_dgb.cpp. Build EXIT=0, --run standup smoke OK.

Install tracker().m_on_block_found in main_dgb.cpp --run via
make_on_block_found, routing a pool-found parent block through
broadcast_won_block dual-path. coin_node seam hoisted above p2p_node so
it outlives the tracker callback; shared with the Stratum submit arm.

reconstruct closure is the documented interim (returns nullopt with a
loud [DGB-POOL-BLOCK] log) — a won share is announced/audited, never
silently dropped, and no malformed block is emitted. Faithful
reconstruct_won_block + embedded P2pRelaySink land with the Phase B
embedded template builder. #82 stays open: won-block-reaches-network is
proven only via the live external-digibyted submitblock fallback (the
Stratum arm), not this binding alone.

Fenced to src/c2pool/main_dgb.cpp.
@frstrtr
frstrtr merged commit 517b9c4 into master Jun 19, 2026
18 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