Repository navigation
feat(syncing): list connected SPV peers with Evonode/Masternode badges - #789
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
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. |
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]>
cfeb502 to
30f8c9c
Compare
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).SwiftDashSDKSPVCoordinatorsubscribes to the SDK's newmanager.$spvPeerspublisher and republishesconnectedPeers, reset on stop alongside the rest of the published state.SwiftDashSDKSPVStatusScreenrenders the card below Per-Phase Progress (the old tip/best-height card is renamedheightsCard;peersCardnow actually shows peers).DASHSYNC_MIGRATION.mdpin 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
fec8430a98onlocal/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 iphonesimulatorbuilds clean against the rebuilt simDashSDKFFI.xcframework.🤖 Generated with Claude Code