Commit Graph

14085 Commits

Author SHA1 Message Date
Ed Hennis
7e4c52c869 test: Add more test cases for Base58 parser (#5174)
---------
Co-authored-by: John Freeman <jfreeman08@gmail.com>
2026-02-20 08:03:00 +09:00
Ed Hennis
ed9046b4fc test: Check for some unlikely null dereferences in tests (#5004) 2026-02-20 08:02:59 +09:00
Bronek Kozicki
01c1f87eca Add Antithesis intrumentation (#5042)
* Copy Antithesis SDK version 0.4.0 to directory external/
* Add build option `voidstar` to enable instrumentation with Antithesis SDK
* Define instrumentation macros ASSERT and UNREACHABLE in terms of regular C assert
* Replace asserts with named ASSERT or UNREACHABLE
* Add UNREACHABLE to LogicError
* Document instrumentation macros in CONTRIBUTING.md
2026-02-20 08:02:59 +09:00
Valentin Balaschenko
c764643d52 Reduce the peer charges for well-behaved peers:
- Fix an erroneous high fee penalty that peers could incur for sending
  older transactions.
- Update to the fees charged for imposing a load on the server.
- Prevent the relaying of internal pseudo-transactions.
  - Before: Pseudo-transactions received from a peer will fail the signature
    check, even if they were requested (using TMGetObjectByHash), because
    they have no signature. This causes the peer to be charge for an
    invalid signature.
  - After: Pseudo-transactions, are put into the global cache
    (TransactionMaster) only. If the transaction is not part of
    a TMTransactions batch, the peer is charged an unwanted data fee.
    These fees will not be a problem in the normal course of operations,
    but should dissuade peers from behaving badly by sending a bunch of
    junk.
- Improve logging: include the reason for fees charged to a peer.

Co-authored-by: Ed Hennis <ed@ripple.com>
2026-02-20 08:02:58 +09:00
tequ
9b5937a1a1 update actions/upload-artifact to v4
https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
2026-02-20 08:02:57 +09:00
tequ
794a146116 levelization 2026-02-20 08:02:49 +09:00
tequ
5736d83aa1 Update ServerDefinition 2026-02-20 08:00:00 +09:00
Elliot Lee
8a2d0b1aa4 refactor(AMMClawback): move tfClawTwoAssets check (#5201)
Move tfClawTwoAssets check to preflight and return
error temINVALID_FLAG

---------

Co-authored-by: yinyiqian1 <yqian@ripple.com>
2026-02-20 07:58:14 +09:00
Elliot Lee
12fea12674 Add a new serialized type: STNumber (#5121)
`STNumber` lets objects and transactions contain multiple fields for
quantities of XRP, IOU, or MPT without duplicating information about the
"issue" (represented by `STIssue`). It is a straightforward serialization of
the `Number` type that uniformly represents those quantities.

---------

Co-authored-by: John Freeman <jfreeman08@gmail.com>
Co-authored-by: Howard Hinnant <howard.hinnant@gmail.com>
2026-02-20 07:57:00 +09:00
Olek
e1ea2d61ea fix: check for valid ammID field in amm_info RPC (#5188) 2026-02-20 07:56:26 +09:00
Mayukha Vadari
fb50a0c90d fix: include index in server_definitions RPC (#5190) 2026-02-20 07:56:25 +09:00
Bronek Kozicki
14af5e67fc Fix ledger_entry crash on invalid credentials request (#5189) 2026-02-20 07:56:25 +09:00
Shawn Xie
780500bc35 Replace Uint192 with Hash192 in server_definitions response (#5177) 2026-02-20 07:56:24 +09:00
Bronek Kozicki
c8d7f35a59 Fix potential deadlock (#5124)
* 2.2.2 changed functions acquireAsync and NetworkOPsImp::recvValidation to add an item to a collection under lock, unlock, do some work, then lock again to do remove the item. It will deadlock if an exception is thrown while adding the item - before unlocking.
* Replace ScopedUnlock with scope_unlock.
2026-02-20 07:56:24 +09:00
Olek
2867b6eac5 Introduce Credentials support (XLS-70d): (#5103)
Amendment:
    - Credentials

    New Transactions:
    - CredentialCreate
    - CredentialAccept
    - CredentialDelete

    Modified Transactions:
    - DepositPreauth
    - Payment
    - EscrowFinish
    - PaymentChannelClaim
    - AccountDelete

    New Object:
    - Credential

    Modified Object:
    - DepositPreauth

    API updates:
    - ledger_entry
    - account_objects
    - ledger_data
    - deposit_authorized

    Read full spec: https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0070d-credentials
2026-02-20 07:56:21 +09:00
Gregory Tsipenyuk
879bfb453e Fix token comparison in Payment (#5172)
* Checks only Currency or MPT Issuance ID part of the Asset object.
* Resolves temREDUNDANT regression detected in testing.
2026-02-20 07:51:04 +09:00
Gregory Tsipenyuk
6eddc7095b Add fixAMMv1_2 amendment (#5176)
* Add reserve check on AMM Withdraw
* Try AMM max offer if changeSpotPriceQuality() fails
2026-02-20 07:51:01 +09:00
Gregory Tsipenyuk
a289acc691 Fix unity build (#5179) 2026-02-20 07:50:28 +09:00
yinyiqian1
05ca77b23c Add AMMClawback Transaction (XLS-0073d) (#5142)
Amendment:
- AMMClawback

New Transactions:
- AMMClawback

Modified Transactions:
- AMMCreate
- AMMDeposit
2026-02-20 07:50:19 +09:00
Valentin Balaschenko
d2e41693c5 docs: Add protobuf dependencies to linux setup instructions (#5156) 2026-02-20 07:45:23 +09:00
yinyiqian1
bfabc979bb fix: reject invalid markers in account_objects RPC calls (#5046) 2026-02-20 07:45:22 +09:00
Bob Conan
2a4c068f81 Update RELEASENOTES.md (#5154)
fix the typo "concensus" -> "consensus"
2026-02-20 07:45:21 +09:00
Gregory Tsipenyuk
0cd8805e36 Introduce MPT support (XLS-33d): (#5143)
Amendment:
- MPTokensV1

New Transactions:
- MPTokenIssuanceCreate
- MPTokenIssuanceDestroy
- MPTokenIssuanceSet
- MPTokenAuthorize

Modified Transactions:
- Payment
- Clawback

New Objects:
- MPTokenIssuance
- MPToken

API updates:
- ledger_entry
- account_objects
- ledger_data

Other:
- Add += and -= operators to ValueProxy

Read full spec: https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0033d-multi-purpose-tokens

---------
Co-authored-by: Shawn Xie <shawnxie920@gmail.com>
Co-authored-by: Howard Hinnant <howard.hinnant@gmail.com>
Co-authored-by: Ed Hennis <ed@ripple.com>
Co-authored-by: John Freeman <jfreeman08@gmail.com>
2026-02-20 07:45:19 +09:00
John Freeman
019940e907 Consolidate definitions of fields, objects, transactions, and features (#5122) 2026-02-20 07:37:27 +09:00
John Freeman
02749feea8 Reformat code with clang-format-18 2026-02-20 07:26:21 +09:00
John Freeman
0788de203f Update pre-commit hook 2026-02-20 07:25:23 +09:00
John Freeman
7454c46037 Update clang-format settings 2026-02-20 07:25:22 +09:00
John Freeman
202f2f03fb Update clang-format workflow 2026-02-20 07:25:21 +09:00
Chenna Keshava B S
282b7b73c5 Expand Error Message for rpcInternal (#4959)
Validator operators have been confused by the rpcInternal error, which can occur if the server is not running in another process.
2026-02-20 07:25:21 +09:00
Elliot Lee
cf80df3eca docs: clean up API-CHANGELOG.md (#5064)
Move the newest information to the top, i.e., use reverse chronological order within each of the two sections ("API Versions" and "XRP Ledger server versions")
2026-02-20 07:25:20 +09:00
Denis Angell
47a0018f30 feat(SQLite): allow configurable database pragma values (#5135)
Make page_size and journal_size_limit configurable values in rippled.cfg
2026-02-20 07:25:20 +09:00
Vlad
ea53a31081 refactor: re-order PRAGMA statements (#5140)
The page_size will soon be made configurable with #5135, making this
re-ordering necessary.

When opening SQLite connection, there are specific pragmas set with
commonPragmas.

In particular, PRAGMA journal_mode creates journal file and locks the
page_size; as of this commit, this sets the page size to the default
value of 4096. Coincidentally, the hardcoded page_size was also 4096, so
no issue was noticed.
2026-02-20 07:25:19 +09:00
Chenna Keshava B S
8491fd37e8 fix(book_changes): add "validated" field and reduce RPC latency (#5096)
Update book_changes RPC to reduce latency, add "validated" field, and accept shortcut strings (current, closed, validated) for ledger_index.

`"validated": true` indicates that the transaction has been included in a validated ledger so the result of the transaction is immutable.

Fix #5033

Fix #5034

Fix #5035

Fix #5036

---------

Co-authored-by: Bronek Kozicki <brok@incorrekt.com>
2026-02-20 07:25:18 +09:00
luozexuan
fbcb7376ff chore: fix typos in comments (#5094)
Signed-off-by: luozexuan <fetchcode@139.com>
2026-02-20 07:25:18 +09:00
Ed Hennis
dfaaac19c6 test: Retry RPC commands to try to fix MacOS CI jobs (#5120)
* Retry some failed RPC connections / commands in unit tests
* Remove orphaned `getAccounts` function

Co-authored-by: John Freeman <jfreeman08@gmail.com>
2026-02-20 07:25:17 +09:00
John Freeman
c5a971317d docs: Update options documentation (#5083)
Co-authored-by: Elliot Lee <github.public@intelliot.com>
2026-02-20 07:25:17 +09:00
John Freeman
725c5beb3f refactor: Remove dead headers (#5081) 2026-02-20 07:25:16 +09:00
John Freeman
5a0882d17a refactor: Remove reporting mode (#5092) 2026-02-20 07:25:15 +09:00
Scott Schurr
7465bf594c Address rare corruption of NFTokenPage linked list (#4945)
* Add fixNFTokenPageLinks amendment:

It was discovered that under rare circumstances the links between
NFTokenPages could be removed.  If this happens, then the
account_objects and account_nfts RPC commands under-report the
NFTokens owned by an account.

The fixNFTokenPageLinks amendment does the following to address
the problem:

- It fixes the underlying problem so no further broken links
  should be created.
- It adds Invariants so, if such damage were introduced in the
  future, an invariant would stop it.
- It adds a new FixLedgerState transaction that repairs
  directories that were damaged in this fashion.
- It adds unit tests for all of it.
2026-02-20 07:25:15 +09:00
Bronek Kozicki
96ce8c5b74 Factor out Transactor::trapTransaction (#5087) 2026-02-20 07:25:14 +09:00
John Freeman
4b7370c0d2 Remove shards (#5066) 2026-02-20 07:25:13 +09:00
Bronek Kozicki
59151959a1 Update gcovr EXCLUDE (#5084) 2026-02-20 07:25:13 +09:00
Bronek Kozicki
380e3839c2 Fix crash inside OverlayImpl loops over ids_ (#5071) 2026-02-20 07:25:12 +09:00
Ed Hennis
7a68da9c4b docs: Document the process for merging pull requests (#5010) 2026-02-20 07:25:12 +09:00
Scott Schurr
b2505dbd5f Remove unused constants from resource/Fees.h (#4856) 2026-02-20 07:25:11 +09:00
Mayukha Vadari
2aac65330b fix: change error for invalid feature param in feature RPC (#5063)
* Returns an "Invalid parameters" error if the `feature` parameter is provided and is not a string.
2026-02-20 07:25:11 +09:00
Ed Hennis
3570f3410d Ensure levelization sorting is ASCII-order across platforms (#5072) 2026-02-20 07:25:10 +09:00
Ed Hennis
1f1a52b5f0 fix: Fix NuDB build error via Conan patch (#5061)
* Includes updated instructions in BUILD.md.
2026-02-20 07:25:09 +09:00
yinyiqian1
cdf3e82f6e Disallow filtering account_objects by unsupported types (#5056)
* `account_objects` returns an invalid field error if `type` is not supported.
  This includes objects an account can't own, or which are unsupported by `account_objects`
* Includes:
  * Amendments
  * Directory Node
  * Fee Settings
  * Ledger Hashes
  * Negative UNL
2026-02-20 07:24:41 +09:00
Scott Schurr
e22f8749db chore: Add comments to SignerEntries.h (#5059) 2026-02-20 07:20:18 +09:00