Network Coordination
← Back to Building Amendments: Lifecycle and Core Protocol Impact
Introduction
Activating an amendment on XRPL is not an isolated event occurring on a single node. It is a complex coordination process involving hundreds of geographically distributed nodes, dozens of independent validators, and numerous operators who must synchronize their actions.
This coordination is essential to ensure the network remains consistent and functional during the transition. Failed coordination could lead to network partition, incompatible ledgers, or temporary loss of consensus.
In this section, we explore the coordination mechanisms, communication strategies, deployment plans, and contingency protocols that allow XRPL to activate amendments safely and in a coordinated manner.
Communication via the Overlay Network
Validation Propagation
The primary coordination mechanism for amendments is the propagation of validations across the overlay network.
Network structure:
┌─────────┐ ┌─────────┐ ┌─────────┐
│Validator│◄───────►│ Node │◄───────►│Validator│
│ A │ │ Relay │ │ B │
└─────────┘ └─────────┘ └─────────┘
│ │ │
│ │ │
▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ Node │ │Validator│ │ Node │
│ API │ │ C │ │ Full │
└─────────┘ └─────────┘ └─────────┘Propagation flow:
A validator publishes a validation containing its list of supported amendments
The validation is broadcast to all connected peers
Each peer propagates the validation to its own peers (flood protocol)
Within seconds, all nodes in the network have received the validation
Each node extracts the amendment list and updates its counters
Validation Broadcast Protocol
Validations are broadcast via XRPL's Peer Protocol:
TMValidation Message:
Processing by receiving node:
Squelching and Optimization
To avoid message flooding, the overlay network uses a squelching mechanism:
Principle: A node only propagates a message if it hasn't seen it yet
Entry expiration: Squelching entries expire after a few minutes to free memory.
Deployment Strategies
Phase 1: Pre-Release Communication
6-8 weeks before release: Public announcement of the proposed amendment
Publication of an XLS (XRPL Standard) detailing the amendment
Public code review on GitHub
Discussions on community forums
Technical webinars and presentations
Communication channels:
XRPL.org blog
GitHub (XLS repository)
XRPL Dev Forum
Discord XRPL Developers
Official Twitter/X
Phase 2: Code Release
Objective: Distribute code before voting begins
Typical timeline:
T+0: Release of rippled with the new amendment (e.g., 1.12.0)
T+1 week: First non-validator nodes update
T+2 weeks: ~30% of nodes updated
T+4 weeks: ~60% of nodes updated
Progressive deployment strategy:
Phase 3: Vote Activation
Communication to validators:
Validators receive notifications to activate their vote:
Informal coordination: Validators communicate via:
Private validator mailing list
Private Slack/Discord channels
Regular coordination meetings
Phase 4: Majority Period
2 weeks of final preparation:
Once the 80% threshold is exceeded, node operators receive alerts:
Required actions:
All non-updated nodes must upgrade
Exchanges and wallets must finalize their integrations
Final tests on staging environments
Phase 5: Activation
Moment of truth: The activation day
24/7 monitoring by technical teams
Emergency communication channels open
Ready to coordinate response if issue detected
Managing Non-Updated Nodes
Early Detection
Nodes can detect that they will soon be blocked:
Emergency Migration Strategies
For validators:
If a validator doesn't have time to update before activation:
For API nodes/Exchanges:
Plan A: Quick upgrade (few hours of maintenance)
Plan B: Route traffic to already-updated backup nodes
Plan C: Degraded mode (read-only via third-party nodes)
Crisis Communication
In case of major problem detected during majority period:
Channel #xrpl-validators (private):
Quick coordination: Validators can withdraw their votes to drop support below 80% and avoid automatic activation.
Contingency Plans
Scenario 1: Critical Bug Discovered After Activation
Cannot disable an amendment: There is no rollback mechanism.
Response strategies:
Emergency patch: Develop and deploy a fix quickly
Corrective amendment: Develop an amendment that fixes the bug
Out-of-band coordination: If the bug is catastrophic, manual coordination for an emergency hard fork (extreme scenario never used on XRPL)
Scenario 2: Network Partition During Activation
Symptom: Two parts of the network activate the amendment at different times or with different results.
Detection:
Resolution:
Normal consensus will resolve the partition
The minority chain will abandon its progress and adopt the majority chain
Unconfirmed transactions will need to be resubmitted
Scenario 3: Validators Divided on Vote
Symptom: Support oscillates around 80%, amendment gains and loses majority multiple times.
Impact:
Multiple
tfGotMajorityandtfLostMajoritypseudo-transactionsConfusion for node operators
Delay in final activation
Prevention:
Clear validator communication before activating votes
Informal consensus reached before formal vote
Avoid "surprise" votes
Monitoring and Observability
Key Metrics
Operators monitor several metrics during the activation process:
1. Vote Count: Number of validators voting for the amendment
2. Network Consensus: Consensus percentage achieved
3. Peer Count: Number of connected peers
4. Ledger Progress: Verify ledgers are progressing normally
Monitoring Dashboards
XRPL Metrics Dashboard (conceptual example):
Alerting
Automatic alert configuration:
Ecosystem Coordination
Exchanges and Services
Exchanges receive notifications and must coordinate:
Typical timeline for an exchange:
Application Developers
Client libraries must be updated before activation:
xrpl.js:
xrpl-py:
Documentation and Communication
Documentation updates:
XRPL.org: New pages for RecurringPayment transactions
GitHub: Updated README and guides
API docs: New endpoints and fields documented
Public announcements:
Lessons Learned: Historical Cases
fixAmendmentMajorityCalc (2021)
Problem: Asymmetry in threshold calculation (rounding up instead of down).
Impact: In certain cases, the effective threshold was slightly higher than 80%.
Resolution: New amendment to correct the calculation.
Lesson: Even simple mathematical calculations must be rigorously tested.
MultiSign (2016)
Success: First major amendment adding significant functionality.
Timeline:
Development: 6 months
Testing on Testnet: 3 months
Deployment: 2 months
Activation: Without incident
Lesson: Extensive preparation and rigorous testing are essential for complex amendments.
Last updated

