Skip to content

Introducing XRP Ledger version 3.5.0

Version 3.5.0 of xrpld, the reference server implementation of the XRP Ledger protocol, is now available.

This release introduces one new amendment and changes the status of three existing amendments:

  • fixCleanup3_5_0: Bundles amendment-gated fixes.
  • fixAMMv1_1: This amendment is retired, making it a permanent part of the protocol.
  • XChainBridge and fixXChainRewardRounding: These amendments are marked obsolete. Servers running 3.5.0 no longer vote for them.

The release also adds pagination to the account_currencies and noripple_check methods, MPT issuance subscriptions to subscribe, full ledger_entry support for checks, NFT offers, payment channels, and signer lists, and new [disabled_public_rpcs], [local_load_fee_updates], and [ledger_build] configuration options. For the full list of API changes, see the API changelog.

Action Required

If you run an XRP Ledger server, upgrade to version 3.5.0 as soon as possible to ensure service continuity.

Install / Upgrade

On supported platforms, see the instructions on installing or updating xrpld.

PackageSHA-256
RPM for Red Hat / CentOS (x86-64)bb7f327aaf528ba97aab9e2517028aa8863823cdaab624095c438f8856ed0d3f
DEB for Ubuntu / Debian (x86-64)4b0b5a2782f1edb254cc46b889a26d629d619283b9a7aa8787d8266515e3cb2c

For other platforms, please build from source. Check out the 3.5.0 tag. As of this release, the build takes its version from the tag.

Full Changelog

Amendments

  • fixCleanup3_5_0: Bundles these fixes for the 3.5.0 release: (#8174)
    • Rejects known-invalid Ed25519 public key encodings wherever a transaction supplies a public key: signing keys, the MessageKey in AccountSet, the public key in PaymentChannelCreate and PaymentChannelClaim, and the public key in XChain attestation transactions. It also rejects a multi-signed SponsorSignature, CounterpartySignature, or BatchSigner that has a present but empty SigningPubKey, with temBAD_SIGNATURE. (ae2c8c62c)
    • Rejects Payment transactions that contain non-canonical path elements, with temBAD_PATH. (17d7dd302)
    • Rejects an all-or-nothing Batch in the open ledger when an inner transaction uses a Sequence or Ticket that is already consumed, so the batch no longer pays its outer fee and then always fails. (9f1535de1)
    • Detects int64 overflow in XRP and MPT amounts, clamps invalid XRP amounts in Quality, and uses exact integer arithmetic for MPT costs in Payment, so a payment cannot charge more than SendMax. (#8453, #8480, #8302)
    • Requires an account to be authorized for both pool assets before it can spend LPTokens in AMMBid or acquire LPTokens with OfferCreate, removes LPToken offers whose owner is no longer authorized, and refuses an AMMBid whose price or burn rounds to zero LPTokens, instead of granting the slot for free. (9660c6069, 0641a6607, f342fbfbf)
    • Stops a passive OfferCreate from admitting every offer when the taker's price is not representable. (2e915e047)
    • Rejects malformed conditions and fulfillments in EscrowFinish preflight. (#8523, 89ebe442c)
    • Charges the asset's transfer fee when VaultWithdraw sends assets to a different account than the one withdrawing, rejects VaultClawback for a holder that doesn't exist before charging the transaction fee, and rejects vault and lending amounts that are out of range for the asset. (#8267, #8470, #8527)
    • Enforces asset authorization on LoanBrokerDelete, waives CanTransfer on loan default and loan broker deletion, and rejects LoanSet overpayment charges of 100% or more. (#8204, #8231, cea79d017)
    • Rejects a zero object ID in SponsorshipTransfer and a zero BookDirectory in LedgerStateFix. (#8254, b397cccaf)
    • Enforces new invariants: a pseudo-account may own only entries that belong to its AMM, vault, or loan broker, and no transaction may clear an MPT issuance flag. (#8181, #8152)
    • Rejects a PaymentChannelClaim that has a PublicKey but no Signature, with temMALFORMED. (1ab0d4220)
    • Rejects an AMMBid that would burn the AMM's LPToken balance below sqrt(asset1 * asset2) / 10,000, with tecAMM_FAILED. (291be0270)
    • Keeps a funded offer in the order book when a strand marked it for removal only because an earlier pass of the same payment used up its owner's funds. (4f1af6369)
    • Ranks payment strands again when an unusable offer at the top of a book skewed the earlier ranking, so a multi-path payment fills strands in ranking order. (7307ec804)
    • Leaves a payment strand out of the ranking when its top offer's quality overflows once the transfer fee is applied, instead of failing the transaction with tecINTERNAL. (2e915e047)
    • Fails a payment strand cleanly when IOU step amounts overflow as they are summed. (5bdfe6329)
  • The fixAMMv1_1 amendment is retired. (#8226)
  • The XChainBridge and fixXChainRewardRounding amendments are marked obsolete. (0861e7f61)

Features

  • Added four counters for the manifest intake queue to the peers section of the print output: manifest_queue_peak_size, manifest_overflow_drops, manifest_dead_peer_drops, and manifest_per_peer_cap_hits. (1d952bdc2)
  • Tracked validations by the NodeID of the master key, so rotated signing keys work correctly. A validator whose own signing key a manifest revokes or replaces now stops validating. (252bf7bcc)
  • Checked validation duplicates before parsing, and rejected validations with non-canonical field order. (d58e19e42)
  • Added ledger_entry lookups for checks, NFT offers, payment channels, and signer lists. (#6319)
  • Added an mpt_issuances field to subscribe and unsubscribe to stream MPT issuance transactions. (#5671)

Breaking Changes

These changes can affect existing clients. For the complete list of API changes, see the API changelog.

  • account_currencies and noripple_check are now paginated. Follow the marker in each response, and pass it back unchanged, to get complete results. An invalid limit or marker now returns invalidParams; account_currencies ignored both fields before. (efb3a1eb8)
  • The deprecated owner_info method is now admin-only. Use account_objects instead. (c849e95ea)
  • A WebSocket request larger than 1,000,000 bytes is refused by closing the connection with code 1009, without an error reply. A request that is not valid JSON still gets a jsonInvalid error, but its value field now echoes at most the first 256 bytes of the request, and the request counts against the sender's rate limit. (c05e52edf)
  • A JSON-RPC batch request may hold at most 100 entries, including on admin connections. A larger request is refused with HTTP 400 Batch has too many entries. A batch now stops at the first entry the client is too loaded to serve, so a reply can hold fewer entries than the request. (c26b553f0)
  • subscribe limits each connection to max_subscriptions_per_connection subscriptions (default 100,000) and each request to 100 order book snapshots, and returns invalidParams beyond that. Requests that name many accounts or MPT issuances now count more heavily against the client's rate limit, and order book snapshots count by page. A request with a malformed books entry now fails as a whole instead of subscribing to the entries before it, and a book that appears more than once is subscribed once. (06ab08fc9, 9a94a263a, da202c948)
  • When sign_for is called with signature_target, the target object no longer contains an empty SigningPubKey; the field is absent. After the fixCleanup3_5_0 amendment is enabled, a multi-signed SponsorSignature, CounterpartySignature, or BatchSigner with a present but empty SigningPubKey is rejected with temBAD_SIGNATURE. With signature_target, the alreadySingleSig and alreadyMultisig checks now look at the target object, so a signature at the top level of tx_json no longer blocks signing into it. (c2b95e777)
  • Restoring keys from an RFC-1751 mnemonic that contains the word YOU now returns the original seed. Before, the server treated such a mnemonic as an ordinary passphrase and derived a different seed without any error. An account funded from a seed derived that way remains accessible with its master_seed or master_seed_hex, but no longer with the mnemonic. (6704bab97)
  • Several methods now return invalidParams for values of the wrong type: a non-boolean fail_hard in submit_multisigned, sign, and sign_for (before, "false" enabled fail_hard), a non-string channel_id in channel_authorize and channel_verify, a non-string signature in channel_verify, and a non-boolean vetoed in feature. deposit_authorized returns badCredentials for an all-zero credential ID. (8241d0907, #8533, #7583, #7582)
  • For a request with more than one problem, several account_* methods (account_currencies, account_nfts, account_offers, account_info, account_lines, and account_channels) may now report a different one of the errors. A request with a single problem returns the same error as before. (#8345, #8484, #8561, #8573)
  • The maximum size of a transaction is now 918,744 bytes, down from 1 MiB. xrpld no longer parses a larger transaction. Over the API, the 1,000,000-byte request limit already keeps a hex tx_blob well below this size, so this mainly affects transactions received from peers. (c1e6c265f)
  • xrpld now refuses to apply or relay a transaction in which an array field holds an element of the wrong type, such as a Memos array that contains a Signer, or in which Paths is not in canonical form. This is a local check. The fixCleanup3_5_0 amendment adds matching checks to transaction processing. (17d7dd302, d7560e2c2)
  • subscribe with account_history_tx_stream now returns noPermission on connections that are not admin connections. This stream is experimental. (80d5b568b)
  • sign and submit (in sign-and-submit mode) with build_path now return invalidParams if tx_json.Amount or tx_json.SendMax is not a valid asset, such as an invalid currency or an MPT whose issuer is the XRP account. (e591f1386)
  • channel_verify now returns publicMalformed for an Ed25519 public_key that has a known invalid encoding. (166263dfb, ae2c8c62c)

Configuration

  • Added the [ledger_build] stanza. Its max_cached_items option sets how many parsed ledger entries the server caches while it builds a ledger. The default is 250,000, which usually takes under 500 MB, 0 turns the cache off, and the maximum is 10,000,000. A value outside that range stops the server from starting. (aa479f18c)
  • Added the [disabled_public_rpcs] stanza, a list of RPC methods that the server refuses to run for non-admin users, with a notSupported error. A line that is not a method name stops the server from starting. (12a1d6fd7)
  • Added the [local_load_fee_updates] stanza. Set it to 0 to stop the server from raising its local load fee when its job queue is overloaded. The default is 1. (e30982c3c)
  • [max_subscriptions_per_connection] now also counts MPT issuance and order book subscriptions. A book subscribed with both counts as two. The default is 100,000. (06ab08fc9, da202c948)
  • maximum_txn_per_account in [transaction_queue] now also limits how many transactions from the network the server holds for one account to retry in the next open ledger. (a2e85db56)
  • max_untrusted_count in [overlay] now sets how many manifests the server relays and serves for validators it does not list. The server also holds manifests for unlisted validators in a local probation tier, four times that size, until it sees the validator validating. The default is 300. (3d0dfea2b, 1d952bdc2)
  • With [relay_proposals] and [relay_validations] set to trusted, the server now also relays untrusted proposals and validations that come from cluster peers. With [relay_validations] set to all, it relays untrusted validations from cluster peers too. (2540c3e65)
  • The --ledgerfile option now rejects a ledger file whose close_time_resolution is not 10, 20, 30, 60, 90, or 120 seconds. (0c9096760)

Bug Fixes

  • Fixed transaction_entry returning internal instead of malformedRequest for an array or object tx_hash. (#8484)
  • Updated the local load fee on every load manager tick. (e30982c3c)
  • Fixed an MPT offer overflow, and rejected paths where an issuer sends its own MPT through an order book. (#8468)
  • Rejected payments of vault shares frozen through the vault's underlying asset. (#8478)
  • Fixed a Clawback of a small IOU amount failing the invariant check on rounding. (#8475)
  • Hardened ledger acquisition against malformed ledger headers and SHAMaps from peers. (#8086, #8085, #8084, #8083, #8476, #8082)
  • Skipped bootstrap DNS lookups in standalone mode. (#8583)
  • Allowed WASM transactions in simulate only in admin mode. (#8568)
  • Fixed MPT OfferCreate when a transfer fee pushes an amount past 64 bits, with MPTokensV2 enabled. (#8211)
  • Stopped blocking MPToken deletion on unrelated confidential balances. (#8209)
  • Used the large Number mantissa whenever MPTokensV2 is enabled. (#8330)
  • Paginated account_lines, account_offers, and account_channels past the new owner directory entry types. (#8274)
  • Fixed a memory leak when converting the last strong intrusive pointer reference to a weak one. (#8328)
  • Counted cluster traffic only from cluster members. (#8319)
  • Queued a transaction hash only for peers that asked for it. (#8309)
  • Rounded up MPT owner cost in book_offers running balance. (#8213)
  • Counted cluster messages as cluster traffic. (#8308)
  • Added CTID to ledger command expanded transactions. (#6401)
  • Fixed SHAMap traversal to derive node IDs from the branch it descended. (#7942)
  • Set the peer limit total when per-direction limits are configured. (#8220)
  • Updated noripple_check to exclude transactions field on error responses. (#6303)
  • Refined issuer attribution in the TransfersNotFrozen invariant. (d04440b93, f9714cc74)
  • Made ledger replay replies fail with an error response instead of throwing when a ledger node is missing. (9b393c243)
  • Held only transactions with an authorized signer, and capped them per account with maximum_txn_per_account. (a2e85db56)
  • Made a transaction with oversized metadata apply as tecOVERSIZE (or tefTOO_BIG) instead of failing at ledger close. (dd67307e5)
  • Rejected a non-string currency or mpt_issuance_id in book parsing. (97b601951)
  • Caught exceptions thrown while applying transactions through the transaction queue. (7396c2e84)
  • Stopped tracking validations from signers that are neither trusted nor on any validator list. (19000f18d)
  • Unsubscribed account_history_tx_stream and sent an internal error when its job fails. (8a00eee8f)
  • Saved publisher revocation manifests to the wallet database so revoked publishers stay revoked after a restart. (2628ee6a7)
  • Capped the potential spend of queued transactions at the total XRP supply. (344b392d2)
  • Stopped keeping transactions that fail with a tem result in the local transaction set for retry. (8241d0907)
  • Sampled inner Batch transactions at the parent batch's fee level when computing fee metrics. (cddc9cef2, e6d4aaa14)
  • Fixed path_find subscriptions not updating on a new ledger after an open-ledger update. (297552465)

Refactors

  • Queued manifests in a bounded queue with a single job, dropping them and charging peers on overflow. (1d952bdc2)
  • Rejected validator list manifests that are oversized, malformed, badly signed, or mismatched. (a41c0679f)
  • Treated repeats of single-use fields in peer messages as unknown fields. (b93a7249f)
  • Asked peers that did not announce a transaction set for it after one empty retry. (ee216bc48)
  • Counted only received bytes in traffic accounting for messages dropped from the header. (a12eb8a9b)
  • Skipped parsing data for a complete or failed transaction set. (485a5d689)
  • Removed loan payment assertions on the size of a rounded step. (2c4f9ce6c)
  • Rebuilt the read buffer instead of shrinking it in place. (a6a82fecf)
  • Parsed each ledger entry once while building a ledger. (aa479f18c)
  • Stopped charging peers for ledger data that older relays forward without checking. (e6137b4f8)
  • Counted a transaction set acquisition as progressing only on new nodes. (552bf4e0c)
  • Skipped unreadable entries in the order book index with a warning. (463779a15)
  • Charged peers for the bytes of object and fetch pack replies that the server did not use. (514f295f9)
  • Tracked each peer's send queue in bytes, and dropped or disconnected peers over the limit. (b44db94fe, d160d1f9c)
  • Removed unused and deprecated fields from the peer protocol messages. (a67732e9d, 2c63f99ec)
  • Armed the peer timer on open peers and activated it after the handshake. (6f5643057)
  • Checked message size and repeated entries against per-type limits before parsing. (1571eeb04)
  • Logged the failure reason and full consensus state for a failed consensus round. (b541c1728)
  • Avoided copying metadata when adding synthetic fields in transJson. (467421337)
  • Made ledger mismatch logging tolerate transactions and metadata that cannot be parsed. (599c4f658)
  • Discarded data for ledgers no longer being acquired, and checked SHAMap item size at run time. (e91e17413)
  • Capped TMGetObjectByHash replies by bytes, and charged peers by reply size. (76e2ddd91)
  • Charged relayed TMGetLedger requests by the size of their reply. (677472aa7)
  • Made the transaction and ledger object parser throw on a nested array that has no end marker. (de786eadd)
  • Limited each peer to squelching 1,000 validators, and dropped out-of-range squelches. (4ac50000b)
  • Bounded the size of TMGetLedger replies and refused to serialize messages too large for a frame header. (b8dedb8aa)
  • Rejected malformed ledger headers and corrupted local ledger records during acquisition. (58cf8c5f5)
  • Accepted TMGetObjectByHash replies and fetch packs only when requested. (5fdfbc988)
  • Started the NFToken page walk from the current page key. (b0d74afe2)
  • Caught a failure to build the consensus ledger. (aea0c6284)
  • Clamped resource balances so a large accumulated charge can no longer overflow. (ebc499e90)
  • Made a failed ledger acquisition setup fail cleanly and log through the node journal. (0baab3b60)
  • Tidied up LoanPay. (7826d8bc6)
  • Simplified the transaction relay path. (96997ae48)
  • Moved validator list broadcasts and trust-change notifications outside the validator list lock. (fbbad31e7)
  • Used getTrustedKey() in the proposal and validation handlers. (16b144b42)
  • Sped up finding the next ledger entry after a long run of deleted entries. (7b22c2667)
  • Aligned Slot::update() and deleteIdlePeer() with deletePeer(). (973cebd06)
  • Tracked whether a Work has started. (836b437c7)
  • Updated path finding for MPT amount support. (de292e28d)
  • Held the PathRequest consumer by value. (719768796)
  • Clamped remaining liquidity at zero in path finding, and returned no paths if it throws. (ee94aee6c)
  • Reworked the peer read path and simplified the stream adapters. (fc2c4658d, e48ecf1b5, 47c3541eb, d30422a02, 5eea4e1f2, c6a6f3889)
  • Rejected compressed peer messages that declare an inflated size larger than LZ4 can produce. (e3791b278)
  • Optimized the binary layout of Number. (#8550)
  • Moved RPC handler parameter parsing to the generated rpc-spec code. See Breaking Changes. (#8573, #8561, #8484, #8345, #8284)
  • Split TxQ::apply into smaller helper functions. (#8064)
  • Decoupled LedgerHistory from TaggedCache internals. (#5874)
  • Used DepositPreauthEntry everywhere. (#8364)
  • Used CheckEntry everywhere. (#8349)
  • Used AmendmentsEntry everywhere. (#8368)
  • Used NegativeUNLEntry everywhere. (#8365)
  • Used LedgerHashesEntry everywhere. (#8369)
  • Used EscrowEntry everywhere. (#8354)
  • Used FeeSettingsEntry everywhere. (#8370)
  • Built Throw messages with std::format. (#8474)
  • Made the config name constants constexpr string views. (#8332)
  • Unified upperBound and lowerBound into boundHelper. (#7943)
  • Added initial wrapper classes for all SLEs. (#7886)
  • Removed a dead unwrap from the WebSocket success path. (#8252)
  • Renamed vault accrual accounting to instant interest recognition. (#8237)
  • Built the RPC dispatch and command-line tables at compile time. (#8006)
  • Added Cluster::isMember, a membership query that copies nothing. (#8221)
  • Kept instrumentation inside the peer read handler's no-throw path. (175816194)

Testing

  • Added tests for ConnectAttempt. (7ae057575)
  • Checked error consistently in rpc handlers. (#8604)
  • Added more checkSign tests for Sponsor. (#8331)
  • Declared, rather than defined, entry instantiations in the SLEBase test. (#8357)
  • Added more tests for granular permissions. (#8459)
  • Migrated three beast suites from beast::unit_test to gtest. (#7993)
  • Restored config test environment variables with a guard. (#8333)
  • Added source location to MPTTester. (#8275)
  • Cleaned up ConfidentialTransfer test helpers. (#8265)
  • Shared peer test doubles across the overlay and app suites. (#8246)
  • Added a reusable peer harness for acquisition tests. (#8310)
  • Opened the acquisition seams its tests need. (#8081)
  • Exposed a SHAMapAddNode verdict as counts. (#8080)
  • Extracted escrow lock helpers and paychan test helpers. (#7882)
  • Extracted common tx-building helpers for ConfidentialMPT in MPTTester. (#8135)

Documentation

  • Clarified getOwnerDirPage and account_currencies walk. (b2e2f20f9)
  • Added todo comment for key rotation zkproof. (#8589)
  • Clarified OS and toolchain requirements. (#8588)
  • Clarified freeze on large changes 2 weeks before first RC. (#8574)
  • Documented new release process. (#8467)
  • Documented the LedgerMaster class. (#8160)
  • Added notes about common acronyms. (#8298)
  • Corrected three comments about null-terminated views. (#8253)

CI/Build

  • Fixed clang-tidy failure. (450af16c8)
  • Used node lts in pre-commit. (b40a32f39)
  • Ran check-release on edited event. (f0eaec3ea)
  • Fixed an issue that breaks CLion. (#8619)
  • Fixed release/staging branches running conditions. (#8615)
  • Fixed running pre-commit after clang-tidy. (#8601)
  • Fixed unity build by addressing name clashes. (#8599)
  • Unified clang variables. (#8581)
  • Fixed rpm installation problems. (#8575)
  • Bumped pyparsing from 3.3.2 to 3.3.3 in /cmake/scripts/codegen in the codegen-dependencies group. (#8572)
  • Updated codegen requirements. (#8570)
  • Bumped cxx from 1.0.202 to 1.0.203 in /crates in the rust-dependencies group. (#8564)
  • Fixed readability-trailing-comma. (#8545)
  • Bumped the github-actions group across 1 directory with 2 updates. (#8562)
  • Fixed misc-const-correctness. (#8546)
  • Updated XRPLF/actions to use pip from python3.14 explicitly. (#8560)
  • Reduced number of conan logs. (#8548)
  • Fixed readability-redundant-lambda-parameter-list. (#8544)
  • Updated clang-tidy image to v23. (#8536)
  • Split multiple-in-one into individual tests. (#8025)
  • Used images with Clang 23 except for clang-tidy. (#8530)
  • Updated pre-commit hooks and image. (#8528)
  • Used LLVM 23. (#8522)
  • Made conan retry with Conan Center's source backups. (#8524)
  • Updated docker images and linked Conan-built tools with a static runtime. (#8520)
  • Made clang-tools custom in Nix, to match what's being built. (#8521)
  • Defined XRPL_ASAN, XRPL_TSAN, and XRPL_UBSAN compile definitions. (#8483)
  • Updated nix flake file. (#8479)
  • Added ignore revs for recent style changes. (#8463)
  • Made release always go into stable channel. (#8469)
  • Added more guardrails for merging releases back to develop. (#8466)
  • Determined version based on tags only. (#8457)
  • Pushed docker image for antithesis with voidstar. (#8341)
  • Added guardrails for release backporting. (#8449)
  • Applied CamelCase naming to typedef and using declarations in clang-tidy. (#8177)
  • Supported custom release channel. (#8326)
  • Published a Docker image from GitHub. (#8322)
  • Bumped cxx from 1.0.199 to 1.0.202 in /crates in the rust-dependencies group across 1 directory. (#8224)
  • Bumped codecov/codecov-action from 7.0.0 to 7.1.1 in the github-actions group across 1 directory. (#8251)
  • Made package publishing say when it is a dry run. (#8247)
  • Published packages through packages-upload.xrplf.org. (#8241)
  • Bumped version to 3.5.0-b0. (638ae08eeb)
  • Excluded Rust unit tests from code coverage. (#8203)
  • Added nightly Rust toolchain to the CI image. (#8182)
  • Bumped actions/deploy-pages from 5.0.0 to 5.0.1 in the github-actions group across 1 directory. (#8180)
  • Added lean toolchain to nix. (#8186)
  • Updated images/prepare-runner to not trust eMudhra certificates. (#8631)
  • Grouped binaries in subdirectories. (#8535)
  • Updated pre-commit hooks. (#8456)
  • Added a pre-commit hook that checks gtest naming. (#8026)

Credits

The following RippleX teams and GitHub users contributed to this release:

  • RippleX Engineering
  • RippleX Docs
  • RippleX Product
  • @Kassaking7
  • @dangell7
  • @harshitgupta62
  • @mrtcnk
  • @v3lmx

Bug Bounties and Responsible Disclosures

We welcome reviews of the xrpld code and urge researchers to responsibly disclose any issues they may find.

For more information, see: