Skip to content

chore: refresh mainnet evonode lists and document how to update them - #46

Merged
HashEngineering merged 3 commits into
mainfrom
chore/update-mainnet-evonodes
Nov 26, 2026
Merged

HashEngineering merged 3 commits into
mainfrom
chore/update-mainnet-evonodes

Conversation

@HashEngineering

@HashEngineering HashEngineering commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • fetch_document.rs: MAINNET_ADDRESS_LIST is now every valid, non-banned mainnet Evo node from protx list valid true (362, Platform HTTPS on port 443).
  • config.rs: MAINNET_ADDRESS_LIST is now the 350 nodes that passed check_all_nodes_mainnet_test (was 127: 22 removed, 245 added, 105 kept). One IP per line so future diffs are reviewable.
  • New docs/updating-evonode-lists.md and scripts/evonodes.sh describe and script the refresh: query Core, write the candidate list, run the check, write the passing nodes into config.rs.
  • Each mainnet list has a // Refreshed 2026-11-24 … comment with its counts; the doc says to update it on every refresh.
  • scripts/evonodes.sh runs under bash on macOS or Linux (Core's data directory from DASHCORE_DIR, else the OS default) and needs Dash Core 23+. It fails with a clear error, instead of printing an empty list, when Core is unreachable or the credentials are wrong, and write refuses an empty or malformed IP file, so a broken run can't produce an empty MAINNET_ADDRESS_LIST.

Test

check_all_nodes_mainnet_test against a fully synced local Dash Core (block 2,577,989, masternode sync finished): 350 passed, 12 failed. All failures were node-side:

Reason Nodes
no healthy upstream 4
unknown gRPC error 4
clock skew beyond tolerance 2
expired TLS certificate 1
TCP connect failure 1

cargo check --lib --tests passes.

scripts/evonodes.sh was exercised against a synced mainnet Core (status, list, passing, write) and against a missing data directory, a stopped Core, wrong credentials, and empty or malformed IP files; each failure case exits 1 and leaves the Rust files untouched.

🤖 Generated with Claude Code

fetch_document.rs now lists all 362 valid, non-banned mainnet Evo nodes
from protx list (Platform HTTPS on 443). check_all_nodes_mainnet_test,
run against a fully synced local Dash Core, passed 350 of them; those 350
replace the 127 nodes in config.rs (22 removed, 245 added).

The 12 failures were node-side: "no healthy upstream" (4), unknown gRPC
error (4), clock skew beyond tolerance (2), expired TLS certificate (1)
and TCP connect failure (1).

Adds scripts/evonodes.sh and docs/updating-evonode-lists.md so the next
refresh is repeatable.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ee6cfb44-bf99-48aa-9abb-30a29cdde467
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@HashEngineering

Copy link
Copy Markdown
Collaborator Author

Test results: mainnet, Android emulators

The new list removes the nodes that cause trouble in the field. Over a morning of use, a build with the old list hit 6 of the 22 removed nodes, and one of them stalled the contacts sync for 74 s. A build with this PR used 53 different nodes from the new list and never reached a node outside it.

Builds

Old list New list
Wallet prod 11.9.2, installed 2026-11-16 dash-wallet master @ 5aed9d1ca, prod debug
kotlin-platform 5.0.1 (old 127-node MAINNET_ADDRESS_LIST) main @ f840f46 + this PR + #45, built locally as 5.0.1-qa45-SNAPSHOT
Emulator Pixel 9, API 35 Pixel 5, API 34

Both apps had a DashPay identity and ran against mainnet: launch, identity restore, the routine contacts and profiles sync, and DashConnect logins.

Results

Old list New list
Platform requests logged about 1,050 about 1,200
Requests to nodes removed by this PR 8, to 6 different nodes 0
Requests to nodes outside the shipped list n/a 0 (53 different nodes used)
Bans caused by a bad listed node 7 0

Every ban on the new-list build was one we caused deliberately: we blocked 5 working nodes to test #45.

Removed nodes the old-list build hit:

Node What happened
161.97.104.37 No response. 09:45: the profile fetch was still waiting at 21 s when the app was closed. 09:58: the contacts request waited 73.9 s, until Android gave up on the TCP connection, and that sync took 1.28 min instead of about 1 s.
95.111.239.54 TLS handshake EOF; failed in 0.3 s
194.163.159.171 TLS fatal alert; failed fast
207.180.241.242 TLS fatal alert; failed fast
194.163.172.206 certificate not valid for the name; failed fast
161.97.180.105 (twice) invalid certificate (CA used as end entity); failed fast

These match the probe results used to build the list: 8 of the removed nodes don't respond at all, 6 refuse connections, and 7 now run a web server that isn't a Platform node. The fast failures cost under a second each before the SDK banned the node and retried. The non-responding node is the expensive one: without #45, each time it's picked it can stall a request for over a minute.

How the list was built

As in the PR description, check_all_nodes_mainnet_test was run against a fully synced local Dash Core. 350 of the 362 valid Evo nodes passed; the 12 failures were all problems on the nodes' side. docs/updating-evonode-lists.md and scripts/evonodes.sh repeat this process for the next refresh.

Not covered

HashEngineering and others added 2 commits November 25, 2026 15:31
- evonodes.sh runs under bash and finds Dash Core's data dir from
  DASHCORE_DIR, else the macOS or Linux (~/.dashcore) default.
- The usage text no longer prints the `set -e` line.
- Each mainnet list carries a "Refreshed" comment with the date and
  counts; the doc says to update it on every refresh.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
When Core was unreachable, the data dir was wrong or the credentials
were bad, `list` printed nothing and exited 0, and `write` then turned
the empty file into `MAINNET_ADDRESS_LIST: [&str; 0]`, which compiles.

- rpc() reports a missing .cookie/dash.conf, an unreachable Core, an
  empty (unauthorised) reply or an RPC error, and returns non-zero.
- pipefail, plus `list` and `passing` fail when they produce no IPs.
- `write` refuses an empty IP file or a line that isn't IPv4, and
  leaves the Rust file untouched.
- The doc notes Core 23+ (for `addresses.platform_https`) and the
  new failure behaviour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@HashEngineering HashEngineering self-assigned this Nov 26, 2026
@HashEngineering
HashEngineering merged commit 7e4d715 into main Nov 26, 2026
2 checks passed
@HashEngineering
HashEngineering deleted the chore/update-mainnet-evonodes branch November 26, 2026 04:21
HashEngineering added a commit that referenced this pull request Nov 26, 2026
* chore: prepare 5.0.2 Maven Central release

5.0.2 = 5.0.1 + #45 (SDK timeouts passed in seconds) and #46 (refreshed
mainnet evonode lists). Same Platform pin (platform-revision.txt) and
dashj 24.0.0 as 5.0.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore: set dash-sdk-bindings and platform-mobile crate versions to 5.0.2

The release commit bumped only the Android bindings crate. The desktop
dash-sdk-bindings crate was still 5.0.1 and platform-mobile had stayed
at 4.0.1 since that release. No code reads these versions, so the
published 5.0.2 artifacts are unaffected; this keeps the repo consistent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

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.

1 participant