fix(wasm-sdk): update stale default testnet DAPI node addresses#3485
fix(wasm-sdk): update stale default testnet DAPI node addresses#3485
Conversation
All 8 previously hardcoded testnet IPs were no longer present on the network, causing js-evo-sdk connections to time out. Replaced with current enabled nodes from quorums.testnet.networks.dash.org/masternodes, distributed across the 68.67.122.x range. Closes #3484 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdated the hardcoded testnet DAPI endpoint addresses in the WASM SDK by replacing eight stale IP addresses with eight active ones from the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsTimed out fetching pipeline failures after 30000ms 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 |
|
✅ Review complete (commit cef4216) |
|
Probably should be backported to 3.0.1 also |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v3.1-dev #3485 +/- ##
=========================================
Coverage 84.79% 84.79%
=========================================
Files 2476 2476
Lines 267709 267709
=========================================
+ Hits 227000 227003 +3
+ Misses 40709 40706 -3
🚀 New features to boost your workflow:
|
thepastaclaw
left a comment
There was a problem hiding this comment.
Code Review
Clean data-only change replacing 8 stale testnet DAPI addresses in wasm-sdk with current live endpoints. The wasm-sdk fix itself looks correct and low-risk. One adjacent follow-up remains: rs-sdk-ffi still ships stale hardcoded testnet defaults, so mobile clients relying on SDK defaults will keep the old timeout behavior until that path is updated too.
Reviewed commit: cef4216
🟡 1 suggestion(s)
1 additional finding
🟡 suggestion: rs-sdk-ffi still hardcodes stale testnet default addresses
packages/rs-sdk-ffi/src/sdk.rs (lines 386-393)
This PR updates the wasm-sdk defaults, but packages/rs-sdk-ffi/src/sdk.rs still uses the old hardcoded testnet address list for Network::Testnet when callers do not provide custom DAPI addresses. That means the same timeout/root-cause remains for the FFI/mobile SDK path even after this PR merges. The wasm fix is still valid on its own, but a follow-up should update the FFI defaults too so the SDKs do not drift again.
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify each finding against the current code and only fix it if needed.
In `packages/rs-sdk-ffi/src/sdk.rs`:
- [SUGGESTION] lines 386-393: rs-sdk-ffi still hardcodes stale testnet default addresses
This PR updates the wasm-sdk defaults, but `packages/rs-sdk-ffi/src/sdk.rs` still uses the old hardcoded testnet address list for `Network::Testnet` when callers do not provide custom DAPI addresses. That means the same timeout/root-cause remains for the FFI/mobile SDK path even after this PR merges. The wasm fix is still valid on its own, but a follow-up should update the FFI defaults too so the SDKs do not drift again.
Issue being fixed or feature implemented
The 8 hardcoded default testnet DAPI addresses in
wasm-sdkwere all stale — none of the IPs appeared in the current live node list athttps://quorums.testnet.networks.dash.org/masternodes. This causedjs-evo-sdkconnections to time out when using the default testnet configuration.Fixes #3484
What was done?
default_testnet_addresses()(packages/wasm-sdk/src/sdk.rs) with current enabled nodes fromquorums.testnet.networks.dash.org/masternodes68.67.122.xrange (port1443) rather than using consecutive IPsHow Has This Been Tested?
https://quorums.testnet.networks.dash.org/masternodes— all selected nodes havestatus: ENABLEDandversionCheck: successwasm-sdkcover address parsing logicBreaking Changes
None.
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit