Skip to content

feat: Add Formats and Flags to server_definitions#6321

Merged
bthomee merged 61 commits intoXRPLF:developfrom
godexsoft:feature/flags-server-definitions
Mar 5, 2026
Merged

feat: Add Formats and Flags to server_definitions#6321
bthomee merged 61 commits intoXRPLF:developfrom
godexsoft:feature/flags-server-definitions

Conversation

@godexsoft
Copy link
Copy Markdown
Contributor

@godexsoft godexsoft commented Feb 3, 2026

High Level Overview of Change

Closes #5151
Attempts to implement XRPLF/XRPL-Standards#418

This is a combination of #5702 (bulk of functionality) and #5616 (tests).

If merged:

  • Issue with tfBatchMask not matching the previous constant is fixed and covered by an extra test in Batch_test.cpp.
  • Modernized the code where possible, removed incorrect uses of initializer_list where applicable.

Context of Change

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Performance (increase or change in throughput and/or latency)
  • Tests (you added tests for code that already exists, or your new feature included in this PR)
  • Documentation update
  • Chore (no impact to binary, e.g. .gitignore, formatting, dropping support for older tooling)
  • Release

API Impact

  • Public API: New feature (new methods and/or new fields)
  • Public API: Breaking change (in general, breaking changes should only impact the next api_version)
  • libxrpl change (any change that may affect libxrpl or dependents of libxrpl)
  • Peer protocol change (must be backward compatible or bump the peer protocol version)

Copilot AI review requested due to automatic review settings February 25, 2026 00:10

This comment was marked as resolved.

Copy link
Copy Markdown
Collaborator

@ximinez ximinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is marked as "Ready to merge", but it's not clear to me that all of @mvadari's questions have been addressed.

In addition, I took a skim through the PR, and noticed a couple of possible improvements.

@ximinez ximinez removed the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Feb 25, 2026
@mvadari mvadari added the Blocked: Needs Final XLS The corresponding final XLS must have been merged before this PR is merged. label Feb 25, 2026
@godexsoft godexsoft requested review from mvadari and ximinez February 26, 2026 19:16
@godexsoft godexsoft added Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. and removed Blocked: Needs Final XLS The corresponding final XLS must have been merged before this PR is merged. labels Mar 2, 2026
Copilot AI review requested due to automatic review settings March 2, 2026 21:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 29 out of 29 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ximinez
ximinez previously approved these changes Mar 4, 2026
Copy link
Copy Markdown
Collaborator

@ximinez ximinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of my concerns have been addressed, though Copilot identified a couple of things.

@ximinez ximinez dismissed their stale review March 4, 2026 22:22

I haven't done a deep review, so I'm just going to dismiss this approval. There are plenty of other approvals to proceed with.

godexsoft and others added 3 commits March 5, 2026 10:39
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bthomee bthomee changed the title feat: Add Formats and Fields to server_definitions feat: Add Formats and Flags to server_definitions Mar 5, 2026
@bthomee bthomee enabled auto-merge (squash) March 5, 2026 16:05
@bthomee bthomee merged commit dde4507 into XRPLF:develop Mar 5, 2026
28 checks passed
oleks-rip pushed a commit to oleks-rip/rippled that referenced this pull request Mar 9, 2026
This change implements XRPLF/XRPL-Standards#418: "System XLS: Add Formats and Flags to server_definitions".
pdp2121 added a commit to XRPLF/xrpl.js that referenced this pull request Mar 12, 2026
## High Level Overview of Change

<!--
Please include a summary/list of the changes.
If too broad, please consider splitting into multiple PRs.
If a relevant Asana task, please link it here.
-->
Next rippled release will introduce new fields to `server_definitions` (already merged to `develop`):
- `TRANSACTION_FORMATS`: Describes the fields and their optionality for each transaction type, including common fields shared across all transactions.
- `LEDGER_ENTRY_FORMATS`: Describes the fields and their optionality for each ledger entry type, including common fields shared across all ledger entries.
- `TRANSACTION_FLAGS`: Maps transaction type names to their supported flags and flag values.
- `LEDGER_ENTRY_FLAGS`: Maps ledger entry type names to their flags and flag values.
- `ACCOUNT_SET_FLAGS`: Maps AccountSet flag names (asf flags) to their numeric values.
  
  See [feat: Add Formats and Flags to server_definitions](XRPLF/rippled#6321)
  
  This will allow our CI tests to pass.
### Type of Change

<!--
Please check relevant options, delete irrelevant ones.
-->

- [x] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Refactor (non-breaking change that only restructures code)
- [ ] Tests (You added tests for code that already exists, or your new feature included in this PR)
- [ ] Documentation Updates
- [ ] Release

### Did you update HISTORY.md?

- [ ] Yes
- [ ] No, this change does not impact library users

## Test Plan

<!--
Please describe the tests that you ran to verify your changes and provide instructions so that others can reproduce.
-->
All CI tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add transaction and ledger entry formats to server_definitions

7 participants