The software that powers the XRP Ledger is open source. Anyone can download, modify, extend, or explore it. If you want to contribute code, it's important to work with the community to define the specifications of your changes and test the code before it becomes a part of the XRP Ledger protocol and blockchain.
The software that powers the XRP Ledger is open-source, so anyone can download, modify, extend, or explore it. Community involvement makes it better. Look for "[Source]" links in the documentation to jump directly into the related source code, or browse the source code on GitHub:
|XRP Ledger Source Code
|Multiple; ISC (permissive)
If you're not sure where to start, Dev Null Productions provides a detailed and thorough Source Code Guide that describes the structure and functions of the core XRP Ledger server (
rippled are tracked by an XRP Ledger Standard (XLS), a document that identifies and details the specifications of a change. Before committing to development, you must start a discussion in the XRPL-Standards repo. This provides the community a chance to discuss and provide feedback about your change.
Note: Bug fixes don't require an XLS, but may require an amendment.
Creating an XLS has its own process, but can be summarized as:
- Start a discussion and gather feedback.
- Create an XLS draft in the standards repo.
- Publishing the XLS draft as a Candidate Specification.
For details, see the XLS contributing guide.
After you've created an XLS draft, you now need to determine if your change requires an amendment. Changes that affect transaction processing require amendments, specifically changes that:
- Modify ledger rules, resulting in different outcomes.
- Add or remove transactions.
- Affect consensus.
Note: If your change doesn't need an amendment, you can go straight to coding and deployment.
Implementing code as an amendment requires you to add the amendment to these files:
Supportedparameter should be set to
nountil development is complete.
DefaultVoteparameter should be set to
yesfor bug fixes; everything else defaults to
Feature.h: Increment the
numFeaturescounter and declare an
extern uint256 constvariable.
The general development path breaks down as follows:
Create a fork or branch in the
rippledrepository to develop your code.
Tip: If you're not sure where to start, Dev Null Productions provides a detailed and thorough
rippledSource Code Guide.
Run unit and integration tests. Running a server in stand-alone mode is useful for testing your changes in an isolated environment, but you may want to stand up a private network for extensive changes.
Create a pull request on
Note for Amendments: Update the
After the pull request is approved by XRP Ledger maintainers, your code is merged into
developand additional testing can be done on Devnet.
Note for Amendments:
DefaultVoteparameter is now locked.
- If problems are found with the amendment, you must restart the process of making fixes and submitting a new PR. You can change the default vote in the new PR.
On a quarterly basis, a release candidate is built from approved PRs on
develop. The package is deployed to Testnet and a few nodes on Mainnet. If no issues are found with the release candidate, the code is merged into
masterand nodes on Mainnet can upgrade to this build.
New amendments go through the consensus process and validators vote on whether to enable them.