Skip to content

dgb(#82): won-block dispatch handler (m_on_block_found) + wiring [re-PR superseded #167] - #196

Closed
frstrtr wants to merge 2 commits into
dgb/won-block-broadcasterfrom
dgb/won-block-dispatch-wiring
Closed

dgb(#82): won-block dispatch handler (m_on_block_found) + wiring [re-PR superseded #167]#196
frstrtr wants to merge 2 commits into
dgb/won-block-broadcasterfrom
dgb/won-block-dispatch-wiring

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Re-PR of the genuinely-missing won-block dispatch slice (old #167 was merged into the broadcaster intermediate branch, never reached master).

Adds src/impl/dgb/coin/won_block_dispatch.hpp (make_on_block_found -> installs as m_on_block_found, reconstruct share->block via injected WonBlockReconstructor, then broadcast_won_block dual-path) + won_block_dispatch_test (4/4).

Stack order on origin/master tip 0c28591:
#163 coin-node-submit-seam (e83f872) -> #166 broadcaster (984eb3c) -> THIS dispatch (5845422).

block_broadcast.hpp (#166) and won_block_dispatch.hpp (this) are the only two won-block-family headers ABSENT from master; reconstruct_won_block/other_tx_resolver/other_tx_assembler/block_assembly/gentx_unpack already landed. HOLD merge — integrator merges after #163, #166.

frstrtr and others added 2 commits June 19, 2026 12:45
dgb(#82): dual-path won-block broadcaster + dispatch contract test
make_on_block_found turns a winning share hash into a broadcast: reconstruct
share->block via an injected WonBlockReconstructor, then fire broadcast_won_block
down both paths (P2P primary + external digibyted submitblock fallback). The
reconstructor is injected so the run-loop dispatch contract is build-verified and
run-tested now, before the faithful as_block reassembly is ported.

won_block_dispatch_test drives the handler end-to-end: known share fires both
paths, unknown/unassemblable share broadcasts nothing, RPC-only still reaches the
network, missing reconstructor is a safe no-op. 4/4 PASS. Registered in
test/CMakeLists.txt and both build.yml --target allowlists (avoids the #143
NOT_BUILT trap). src/impl/dgb/ only; no p2pool-merged-v36 surface.
@frstrtr

frstrtr commented Jun 19, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #198 — same single commit (won_block_dispatch.hpp dispatch handler), now rebased onto master (67512ef). #196 targeted dgb/won-block-broadcaster which merged via #166.

@frstrtr
frstrtr force-pushed the dgb/won-block-dispatch-wiring branch from 5845422 to 67512ef Compare June 19, 2026 09:04
@frstrtr frstrtr closed this Jun 19, 2026
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