Skip to content

upgrade status: Strip the prefix (not just legacy ) so a release isn't split across two bars after the rippled -> xrpld rename.#1330

Merged
kuan121 merged 1 commit into
mainfrom
fix-upgrade-status-display-bug
Jun 30, 2026
Merged

upgrade status: Strip the prefix (not just legacy ) so a release isn't split across two bars after the rippled -> xrpld rename.#1330
kuan121 merged 1 commit into
mainfrom
fix-upgrade-status-display-bug

Conversation

@kuan121

@kuan121 kuan121 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

High Level Overview of Change

The Upgrade Status page (/network/upgrade-status) displayed a single rippled release as two separate bars — e.g. xrpld-3.2.0 and 3.2.0. This PR normalizes the xrpld- prefix so prefixed and bare version strings aggregate into one bucket.

Context of Change

handleNodeVersion cleans the version strings returned by the VHS
topology endpoint (data.xrpl.org/v1/network/topology/nodes/{network}) before they're aggregated. It only stripped the rippled- prefix.

After rippled was renamed to xrpld, newer peers self-report as xrpld-3.2.0, which failed the startsWith('rippled') check and was left untouched — so it never merged with the bare 3.2.0 values that validators (and VHS) report. Live data confirmed the split: xrpld-3.2.0 (221 nodes) and 3.2.0 (98) appeared as distinct versions, as did rippled-3.1.3 (286) vs 3.1.3 (168).

The fix extends the prefix check to also strip xrpld-. The existing +hash suffix handling already covers debug builds like xrpld-3.3.0-b0+<hash>.DEBUG. The GitHub stable-release tag is already prefix-free (3.2.0), so no change was needed there.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)

Codebase Modernization

  • Updated files to React Hooks
  • Updated files to TypeScript

N/A — the touched files are already Hooks + TypeScript.

Before / After

Before: xrpld-3.2.0 and 3.2.0 (and rippled-3.1.3 / 3.1.3) rendered as separate bars, fragmenting version-adoption counts.

After: Prefixed versions normalize to their bare form (xrpld-3.2.03.2.0), merging with validator/node buckets and the GitHub stable tag into a single accurate bar per release.

Test Plan

  • Added a handleNodeVersion unit test block covering: rippled- and xrpld- prefix stripping, release-suffix preservation (-b7), +hash.DEBUG stripping, and already-clean versions.
  • Manual test

…t split across two bars after the rippled -> xrpld rename.
@kuan121 kuan121 requested review from Patel-Raj11 and pdp2121 June 30, 2026 16:07
@kuan121 kuan121 merged commit 8a60599 into main Jun 30, 2026
6 checks passed
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.

3 participants