Skip to content

dash(launcher): --listen/--addnode/--connect sharechain peering CLI contract - #575

Merged
frstrtr merged 1 commit into
masterfrom
dash/launcher-peering-cli
Jun 27, 2026
Merged

dash(launcher): --listen/--addnode/--connect sharechain peering CLI contract#575
frstrtr merged 1 commit into
masterfrom
dash/launcher-peering-cli

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 27, 2026

Copy link
Copy Markdown
Owner

What

main_dash gains the pool-to-pool peering argv the G2 dual-pool ratchet LIVE rows (C1-C4) invoke, matching main_btc (--sharechain-port + bootstrap):

  • --listen [HOST:]PORT — sharechain bind (default = SSOT 8999 main / 18999 test)
  • --addnode HOST:PORT — persistent outbound peer (repeatable)
  • --connect HOST:PORT — connect-only peer; listen + discovery suppressed (repeatable)

Lands the argv contract + HOST:PORT validation (malformed => rc 2) + a run-loop topology report.

Scope (honest — CLI surface, not yet live peering)

Clears gate (b)’s CLI-surface half. The LIVE bind/dial rides DASH’s sharechain pool Node (node.hpp/peer/messages/share_tracker — the pool::NodeBridge analog of btc::Node/dgb::Node), which is NOT yet on master = the next S8 leaf. This surface wires straight into it.

Fencing

dash-fenced (main_dash.cpp only); no shared-base / other-coin edit; dashd-RPC fallback untouched. GPG-signed.

Evidence (Linux x86_64)

  • --selftest 3/3 consensus checks green (no regression)
  • malformed --addnode bogus / --listen 99999 => rc 2
  • listen+addnode+connect, connect-only-suppression, and SSOT-default all print correct topology; clean SIGINT shutdown

Held for integrator verify → operator tap. No self-merge.

…ontract

main_dash gains the pool-to-pool peering argv the G2 dual-pool ratchet
LIVE rows (C1-C4) invoke, matching main_btc (--sharechain-port + bootstrap):
  --listen [HOST:]PORT   sharechain bind (default = SSOT 8999/18999)
  --addnode HOST:PORT    persistent outbound peer (repeatable)
  --connect HOST:PORT    connect-only peer; listen + discovery suppressed (repeatable)

Lands the argv CONTRACT + HOST:PORT validation (malformed => rc 2) and a
run-loop topology report. Honest scope: the LIVE bind/dial rides DASHs
sharechain pool Node (node.hpp/peer/messages/share_tracker, the
pool::NodeBridge analog of btc::Node) which is NOT yet on master -- next
S8 leaf; this surface wires straight into it. dash-fenced (main_dash only);
no shared-base / other-coin edit; dashd-RPC fallback untouched.
@frstrtr
frstrtr merged commit d64157f into master Jun 27, 2026
21 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