Skip to content

feat(syncing): list connected SPV peers with Evonode/Masternode badges - #789

Merged
QuantumExplorer merged 1 commit into
swift-sdk-integrationfrom
feat/spv-status-peer-list
Jul 9, 2026
Merged

QuantumExplorer merged 1 commit into
swift-sdk-integrationfrom
feat/spv-status-peer-list

Conversation

@QuantumExplorer

Copy link
Copy Markdown
Member

What was done?

The SwiftDashSDK SPV Status screen (Tools menu) showed sync progress but nothing about the peers behind it. This adds a Connected Peers card: peer count, one row per peer with its ip:port, and a node-type badge — Evonode (purple), Masternode (blue), Node (gray), or Unclassified (orange, while the masternode list hasn't synced yet).

  • SwiftDashSDKSPVCoordinator subscribes to the SDK's new manager.$spvPeers publisher and republishes connectedPeers, reset on stop alongside the rest of the published state.
  • SwiftDashSDKSPVStatusScreen renders the card below Per-Phase Progress (the old tip/best-height card is renamed heightsCard; peersCard now actually shows peers).
  • DASHSYNC_MIGRATION.md pin note gains item (e): the pin branch now carries the connected-peers SDK surface.

SDK dependency

Requires the classified connected-peers FFI from platform PR #4050. Cherry-picked onto the pin branch and pushed as fec8430a98 on local/tx-decode-plus-v4.1-dev-dashwallet. Classification happens in Rust (rs-platform-wallet) against the masternode list engine; the app only renders it.

How Has This Been Tested?

  • xcodebuild -workspace DashWallet.xcworkspace -scheme dashpay -sdk iphonesimulator builds clean against the rebuilt sim DashSDKFFI.xcframework.
  • SDK-side classification is unit-tested in the platform PR (masternode/evonode/normal, unknown-before-mn-sync, IP-fallback match).

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Jul 9, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a5e32111-fbad-4a47-801a-0f19634a3d13

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/spv-status-peer-list

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@QuantumExplorer

Copy link
Copy Markdown
Member Author

Live-verified on the QA-iPhone16Pro simulator (mainnet, fully synced): Connected Peers card shows 3 peers — 1.117.75.220:9999 (Masternode), 2.59.156.192:9999 (Evonode), 2.59.219.54:9999 (Masternode) — classifications resolved against the synced masternode list.

@QuantumExplorer QuantumExplorer changed the title feat(spv-status): list connected peers with Evonode/Masternode badges feat(syncing): list connected SPV peers with Evonode/Masternode badges Jul 9, 2026
The SwiftDashSDK SPV Status screen showed sync progress but not who
the client is talking to. The SDK now classifies every connected peer
against the masternode list (platform PR #4050, pin cherry-pick
fec8430a98), so:

- SwiftDashSDKSPVCoordinator mirrors manager.$spvPeers into a
  published connectedPeers, reset on stop like the rest of the
  published state.
- The status screen gains a Connected Peers card: peer count, one row
  per peer with its ip:port and an Evonode / Masternode / Node badge
  (Unclassified while the masternode phase is still syncing).

Co-Authored-By: Claude Fable 5 <[email protected]>
@QuantumExplorer
QuantumExplorer force-pushed the feat/spv-status-peer-list branch from cfeb502 to 30f8c9c Compare July 9, 2026 11:02
@QuantumExplorer
QuantumExplorer merged commit ff72247 into swift-sdk-integration Jul 9, 2026
1 check passed
@QuantumExplorer
QuantumExplorer deleted the feat/spv-status-peer-list branch August 7, 2026 08:22
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