Skip to content

DGB Phase A: embedded P2P + mempool (#82) - #93

Merged
frstrtr merged 4 commits into
masterfrom
dgb/embedded-p2p-mempool
Jun 14, 2026
Merged

DGB Phase A: embedded P2P + mempool (#82)#93
frstrtr merged 4 commits into
masterfrom
dgb/embedded-p2p-mempool

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Phase A of the DGB→LTC-parity embedded port (#82): mirrors the LTC embedded coin layer into src/impl/dgb/coin/ (p2p_node, p2p_connection, p2p_messages, mempool), Scrypt-only, per-coin isolated. Rebased on current master (c67fbc1); 11 files; dgb_coin wired via add_subdirectory (f992d95). Builds clean (0 errors) per ci-steward. DRAFT / held for operator. Phase B (pool + share layer + pillars) follows separately.

frstrtr added 4 commits June 14, 2026 00:49
Phase A (#82) leaf deps for the embedded P2P+mempool layer. 1:1 mirror of
src/impl/btc/coin (DGB is structurally BTC-shaped, non-MWEB; Scrypt PoW
divergence lives in header_chain.hpp). block.hpp carries the multi-algo note:
the version field encodes the mining algo but the 80-byte header layout is
single-format and algo-agnostic; algo selection is read in header_chain, not
in (de)serialization. node_interface.hpp restores the members the Path-A stub
deferred (new_tx/new_headers/full_block/txidcache/known_txs), now that the
types exist.
Phase A (#82). 1:1 mirror of src/impl/btc/coin (non-MWEB). SegWit/wtxid
short-IDs apply (DGB activated SegWit). No coin-specific magic/consensus
constants in this layer.
Phase A (#82). 1:1 mirror of src/impl/btc/coin (non-MWEB) speaking the
DigiByte Core wire protocol; Scrypt-only. Two P2P-handshake constants carried
from BTC are flagged TODO(M3) for reconciliation vs DigiByte Core params:
protocol_version (70016) and advertised port (8333 -> DGB mainnet 12024).
Neither is consensus. dgb_coin CMake lists the new files but stays
unreferenced by add_subdirectory() pending the ci-steward OBJECT-lib wiring.
Flip per OBJECT-lib convention: register src/impl/dgb at top level and enable the coin subdir under COIN_DGB. dgb_coin now builds standalone (-DCOIN_DGB=ON); libdgb_coin.a links clean, 0 errors. daemon/test stay commented (M3).
@frstrtr
frstrtr marked this pull request as ready for review June 14, 2026 07:05
@frstrtr frstrtr changed the title DGB Phase A: embedded P2P + mempool (#82) — DRAFT, held DGB Phase A: embedded P2P + mempool (#82) Jun 14, 2026
@frstrtr
frstrtr merged commit 91d60dc into master Jun 14, 2026
16 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