dgb: concrete ICoinNode + minimal rpc layer (family-1 fast-follow) - #77
Merged
Conversation
…ew seam
Path A minimal-stub surface for the c2pool-dgb family-1 bind, mirroring
the btc coin layer (2-arg no-MWEB submit shape):
- rpc_data.hpp: rpc::WorkData (m_data/m_hashes/m_latency; m_txs deferred
until the DGB transaction port lands with M3)
- rpc.hpp: NodeRPC stub -- getwork() throws (ICoinNode no-template
contract), submit_block_hex(str, bool) returns false; real transport
is an M3 body-only swap
- node_interface.hpp: dgb::interfaces::Node shared-state surface (work
variable + new_block event)
- node.hpp: per-coin Node owner (NodeRPC only; P2P deferred to M3)
- coin_node.{hpp,cpp}: concrete dgb::coin::CoinNode : core::coin::ICoinNode;
full WorkData retained coin-side, agnostic WorkView slice crosses the seam
- template_builder.hpp: CoinNodeInterface trimmed mirror (submit_block
deferred with the block.hpp port)
- coin/CMakeLists.txt: dgb_coin lib staged; NOT registered -- top-level
wiring follows the OBJECT-lib convention, so this commit is build-inert
V36 scope: DGB validates Scrypt only; other algos accept-by-continuity or
ignored. Touches src/impl/dgb/ only; zero lines of the #69 adapter/seam
surface.
frstrtr
force-pushed
the
dgb/family1-coinnode
branch
from
June 11, 2026 04:13
ba7a349 to
40a55af
Compare
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.
Standalone dgb/ fast-follow to #69 per the family-1 (b)-decouple ruling: the dgb concrete bind lands as its own PR, kept out of the combined head.
What
Path A minimal-stub coin layer for c2pool-dgb, mirroring the btc coin layer (2-arg/no-MWEB submit shape, btc d9c0f16 reference):
rpc_data.hpp—dgb::coin::rpc::WorkData(m_data/m_hashes/m_latency; m_txs deferred until the DGB transaction port lands in M3)rpc.hpp— NodeRPC stub:getwork()throws per the ICoinNode no-template contract;submit_block_hex(const std::string&, bool)returns false (no transport until M3; real client is a body-only swap)node_interface.hpp—dgb::interfaces::Nodeshared-state surface (work variable + new_block event)node.hpp— per-coin Node owner (NodeRPC only; P2P/handshake deferred to M3)coin_node.{hpp,cpp}— concretedgb::coin::CoinNode : core::coin::ICoinNode: full per-coin WorkData retained coin-side, only the agnostic WorkView slice crosses the seamtemplate_builder.hpp—CoinNodeInterfacetrimmed mirror (submit_block(BlockType&)deferred with the block.hpp port)coin/CMakeLists.txt— dgb_coin lib staged but NOT registered (parentadd_subdirectory(coin)stays commented out pending the ci-steward OBJECT-lib convention), so this PR is build-inertGuardrail compliance
src/impl/dgb/ONLY — zero lines of the btc-embedded combined head: Family-1 CoinAdapter + web_server rewire + V36 leak fix (4-coin) #69 merged adapter/seam surface (additive concrete files only)-fsyntax-onlywith core flags) against master 0f3bbbf; CoinNode instantiates as a non-abstractcore::coin::ICoinNodeNot in scope
M3 embedded daemon (EmbeddedCoinNode, real RPC transport, P2P, transaction/block ports). DGB smoke-matrix CI job — coordinating with ci-steward separately once the binary links.