Skip to content

chore: update testnet DAPI address whitelist with currently enabled masternodes - #2816

Merged
QuantumExplorer merged 4 commits into
v2.1-devfrom
testnet-whitelist-update
Oct 24, 2025
Merged

QuantumExplorer merged 4 commits into
v2.1-devfrom
testnet-whitelist-update

Conversation

@thephez

@thephez thephez commented Oct 22, 2025 •

Copy link
Copy Markdown
Collaborator

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?

How Has This Been Tested?

  • Generated the masternode list using dash-cli -testnet masternodelist evo command to verify only ENABLED masternodes are included

Breaking Changes

N/A

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests (N/A - configuration update only)
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any (No breaking changes)
  • I have made corresponding changes to the documentation if needed (Added comment explaining regeneration process)

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Summary by CodeRabbit

  • Chores
    • Updated testnet network configuration: replaced and reordered node addresses and endpoints to match the latest infrastructure.
    • Added a documentation comment explaining how the testnet address list is generated.
    • No functional behavior or error handling changes; this only updates the predefined testnet connection list.

Update testnet DAPI address whitelist with currently enabled masternodes
@thephez thephez added this to the v2.1.0 milestone Oct 22, 2025
@thephez
thephez marked this pull request as ready for review October 22, 2025 21:12
@coderabbitai

coderabbitai Bot commented Oct 22, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

The 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

Cohort / File(s) Change Summary
JS DAPI Client Testnet Configuration
packages/js-dapi-client/lib/networkConfigs.js
Replaced the dapiAddressesWhiteList contents with a new set of IP:port entries and added a documentation comment about generating the list.
Rust WASM SDK Testnet Endpoint
packages/wasm-sdk/src/sdk.rs
Replaced testnet node endpoint 35.164.23.245:1443 with 34.214.48.68:1443 in the shared testnet endpoints array used by multiple builder methods.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I hopped through configs at break of dawn,
Swapped an old node for a newer one, then yawned,
I nudged the whitelist, penned a tiny note,
Now testnets hum — I twitch my whiskered coat. 🥕

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The pull request title "chore: update testnet DAPI address whitelist with currently enabled masternodes" is directly aligned with the main changes in the changeset. The PR updates the testnet DAPI address whitelists in two files by replacing multiple addresses with new ones, removing disabled masternode entries, and adding newly enabled ones. The title clearly and specifically describes this primary change without being vague, overly broad, or misleading. It uses appropriate language and structure to convey the exact nature of the update.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch testnet-whitelist-update

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 and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 endpoints

packages/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 via generate_docs.py.

🧹 Nitpick comments (2)
packages/js-dapi-client/lib/networkConfigs.js (2)

15-16: Nice doc; consider sorting/dedup in the generation command

Add 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 1443

LGTM. 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

📥 Commits

Reviewing files that changed from the base of the PR and between 146643b and e385ad9.

📒 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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e385ad9 and ca887fe.

📒 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

@QuantumExplorer
QuantumExplorer merged commit 61678b4 into v2.1-dev Oct 24, 2025
@QuantumExplorer
QuantumExplorer deleted the testnet-whitelist-update branch October 24, 2025 15:52
PastaPastaPasta added a commit that referenced this pull request Oct 27, 2026
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]>
PastaPastaPasta added a commit that referenced this pull request Oct 29, 2026
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]>
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.

2 participants