You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Second stacked run-loop slice. main_dgb.cpp --run now constructs the real
dgb::Config + dgb::Node (pool::NodeBridge<NodeImpl, Legacy, Actual>) on the
spine io_context, opens the sharechain LevelDB, and binds the P2P listener on
PoolConfig::P2P_PORT (5024) — the sharechain peer is live, not just the
io_context spine.
Config is set directly from the p2pool-dgb-scrypt oracle constants (PREFIX
1c0553f2..., IDENTIFIER 4b62545b...), skipping Config::init() yaml load, the
same contract main_btc.cpp uses. DEFAULT_BOOTSTRAP_HOSTS is empty until DGB
p2pool nodes come online, so there are no outbound seeds to dial this slice;
the node listens and waits for inbound peers. The per-coin net dir is digibyte/
(bucket-1 isolation).
Constructing the node pulls BaseNode::connected (boost::log) and the NodeImpl
TU, so the c2pool-dgb exe must link the real dgb pool runtime, not just the
header-only score path. Wire the exe to link the dgb OBJECT lib + dgb_coin +
core/pool/sharechain/storage base, mirroring the c2pool-btc link set;
c2pool_merged_mining is pulled for symbol resolution of the core web_server
tangle only (same as c2pool-btc) and does NOT enable -DAUX_DOGE — DGB default
build stays standalone. Only the c2pool-dgb target stanza changes; per-coin
isolation holds.
Build EXIT=0. Smoke: --run binds 0.0.0.0:5024 (ss-confirmed), SIGINT ->
graceful shutdown -> clean exit 0, LevelDB closed cleanly; --selftest still
drives the live score() path; --version OK.
SEAM (next slice): stand up the Stratum work source + bind
make_on_block_found(reconstruct_won_block, p2p_sink) into m_on_block_found
to close the #82 embedded P2P relay path (submitblock RPC fallback at
rpc.cpp:387 is already real, not a stub).
0 commit comments