Repository navigation
chore: update testnet DAPI address whitelist with currently enabled masternodes - #2816
Conversation
Update testnet DAPI address whitelist with currently enabled masternodes
WalkthroughThe PR updates testnet network endpoint lists in two packages: the JS DAPI client whitelist is replaced and documented, and the Rust WASM SDK swaps one testnet node address used by multiple builder methods. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
packages/wasm-sdk/src/sdk.rs (1)
679-688: Sync JS testnet whitelist with WASM SDK endpointspackages/js-dapi-client/lib/networkConfigs.js testnet.dapiAddressesWhiteList is missing these entries from packages/wasm-sdk/src/sdk.rs:
- 127.0.0.1:1443
- 34.214.48.68:1443
- 35.82.197.197:1443
- 44.239.39.153:1443
- 44.240.98.102:1443
- 52.12.176.90:1443
- 52.24.124.162:1443
- 52.34.144.50:1443
- 54.149.33.167:1443
Add them to avoid drift, then run
cargo fmt, Clippy, and regenerate WASM SDK docs viagenerate_docs.py.
🧹 Nitpick comments (2)
packages/js-dapi-client/lib/networkConfigs.js (2)
15-16: Nice doc; consider sorting/dedup in the generation commandAdd sort/unique to stabilize order and avoid accidental dupes:
-// dash-cli -testnet masternodelist evo | jq 'to_entries | map(select(.value.status == "ENABLED") | .value.address | sub(":19999"; ":1443"))' +// dash-cli -testnet masternodelist evo \ +// | jq -c 'to_entries +// | map(select(.value.status=="ENABLED") | .value.address | sub(":19999$"; ":1443")) +// | sort | unique'Also, please confirm the “we don't have PoSe atm” note is still accurate on testnet.
18-40: Whitelist update verified—unique entries, all on port 1443LGTM. Optional: extract this list into a shared JSON artifact consumed by both JS and WASM to prevent drift.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
packages/js-dapi-client/lib/networkConfigs.js(1 hunks)packages/wasm-sdk/src/sdk.rs(2 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
packages/**/**/*.{js,ts,jsx,tsx}
📄 CodeRabbit inference engine (AGENTS.md)
packages/**/**/*.{js,ts,jsx,tsx}: Adhere to ESLint with Airbnb/TypeScript configs for JS/TS code
Use camelCase for JS/TS variables and functions
Use PascalCase for JS/TS classes
Prefer kebab-case filenames within JS packages
Files:
packages/js-dapi-client/lib/networkConfigs.js
**/*.rs
📄 CodeRabbit inference engine (CLAUDE.md)
**/*.rs: Format Rust code with cargo fmt
Run Clippy linter for Rust code
Files:
packages/wasm-sdk/src/sdk.rs
packages/wasm-sdk/**
📄 CodeRabbit inference engine (CLAUDE.md)
Keep WASM SDK docs in sync (run generate_docs.py) when updating the WASM SDK
Files:
packages/wasm-sdk/src/sdk.rs
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
- GitHub Check: Rust packages (wasm-sdk) / Tests
- GitHub Check: Rust packages (wasm-sdk) / Unused dependencies
- GitHub Check: Rust packages (wasm-sdk) / Formatting
- GitHub Check: Rust packages (wasm-sdk) / Linting
- GitHub Check: Build Docker images (RS-DAPI, rs-dapi, rs-dapi) / Build RS-DAPI image
- GitHub Check: Build Docker images (DAPI, dapi, dapi) / Build DAPI image
- GitHub Check: Build Docker images (Drive, drive, drive-abci) / Build Drive image
- GitHub Check: Build Docker images (Dashmate helper, dashmate-helper, dashmate-helper) / Build Dashmate helper image
- GitHub Check: Build JS packages / Build JS
- GitHub Check: Rust crates security audit
Based on https://quorums.testnet.networks.dash.org/masternodes with enabled nodes passing the version check
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/js-dapi-client/lib/networkConfigs.js(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
packages/**/**/*.{js,ts,jsx,tsx}
📄 CodeRabbit inference engine (AGENTS.md)
packages/**/**/*.{js,ts,jsx,tsx}: Adhere to ESLint with Airbnb/TypeScript configs for JS/TS code
Use camelCase for JS/TS variables and functions
Use PascalCase for JS/TS classes
Prefer kebab-case filenames within JS packages
Files:
packages/js-dapi-client/lib/networkConfigs.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
- GitHub Check: Rust packages (wasm-sdk) / Tests
- GitHub Check: Rust packages (wasm-sdk) / Unused dependencies
- GitHub Check: Rust packages (wasm-sdk) / Formatting
- GitHub Check: Rust packages (wasm-sdk) / Linting
- GitHub Check: Build Docker images (DAPI, dapi, dapi) / Build DAPI image
- GitHub Check: Build Docker images (Dashmate helper, dashmate-helper, dashmate-helper) / Build Dashmate helper image
- GitHub Check: Build JS packages / Build JS
- GitHub Check: Rust crates security audit
The whitelist has been a snapshot of all enabled testnet evonodes rather than a hand-picked set of DCG nodes since #2816; say so, and say what happens when it goes stale. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The whitelist has been a snapshot of all enabled testnet evonodes rather than a hand-picked set of DCG nodes since #2816; say so, and say what happens when it goes stale. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Issue being fixed or feature implemented
The testnet DAPI address whitelist contains outdated masternode addresses. Some masternodes are no longer enabled on testnet, while newly enabled masternodes are missing from the whitelist. This causes connection issues and potential failures when the SDK/client attempts to connect to unavailable or unreliable nodes.
What was done?
dapiAddressesWhiteListinpackages/js-dapi-client/lib/networkConfigs.jswith currently enabled testnet masternodespackages/wasm-sdk/src/sdk.rsHow Has This Been Tested?
dash-cli -testnet masternodelist evocommand to verify only ENABLED masternodes are includedBreaking Changes
N/A
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit