Sponsored Content
Skip to content

Retire CryptoConditionsSuite - #6036

Merged
bthomee merged 7 commits into
developfrom
a1q123456/retire-CryptoConditionsSuite
Nov 24, 2025
Merged

Retire CryptoConditionsSuite#6036
bthomee merged 7 commits into
developfrom
a1q123456/retire-CryptoConditionsSuite

Conversation

@a1q123456

@a1q123456 a1q123456 commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

High Level Overview of Change

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)

Signed-off-by: JCW <a1q123456@users.noreply.github.com>
@a1q123456
a1q123456 requested review from a team, bthomee and pratikmankawde November 14, 2025 10:19
@a1q123456

Copy link
Copy Markdown
Contributor Author
./rippled --conf /Users/jingchenw/rippled.cfg -- server_info | convertfrom-json | Select-Object { $_.result.info.server_state }
Loading: "/Users/jingchenw/rippled.cfg"
2025-Nov-14 10:18:17.400764 UTC HTTPClient:NFO Connecting to 127.0.0.1:5005


 $_.result.info.server_state
-----------------------------
proposing

We're still able to connect to the main net and we don't get amendment blocked after adding a test only feature.

@bthomee
bthomee requested review from Bronek and ximinez November 14, 2025 13:15
@bthomee

bthomee commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator

Adding @Bronek and @ximinez for their opinion on the test-only amendment.

Comment thread include/xrpl/protocol/detail/features.macro Outdated
@Bronek

Bronek commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

Adding @Bronek and @ximinez for their opinion on the test-only amendment.

Yeah, I do not like that

@codecov

codecov Bot commented Nov 14, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.6%. Comparing base (8449c6c) to head (9481e2a).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #6036     +/-   ##
=========================================
- Coverage     78.6%   78.6%   -0.0%     
=========================================
  Files          818     818             
  Lines        68981   68978      -3     
  Branches      8247    8243      -4     
=========================================
- Hits         54200   54195      -5     
- Misses       14781   14783      +2     
Files with missing lines Coverage Δ
src/xrpld/app/tx/detail/Escrow.cpp 99.6% <ø> (+0.4%) ⬆️

... and 4 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/test/rpc/Feature_test.cpp Outdated
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
@a1q123456
a1q123456 requested a review from ximinez November 19, 2025 14:42
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
Comment thread include/xrpl/protocol/detail/features.macro
Comment thread src/test/rpc/Feature_test.cpp
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
@a1q123456 a1q123456 changed the title Retire CryptoConditionsSuite and add a test only obsolete feature Retire CryptoConditionsSuite Nov 21, 2025
// to vote for it, the feature can be removed (entirely?) from the code.
XRPL_FEATURE(CryptoConditionsSuite, Supported::yes, VoteBehavior::Obsolete)

// XRPL_FEATURE(Example, Supported::yes, VoteBehavior::Obsolete)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice placeholder.

Comment on lines +532 to +546
auto const& supportedAmendments = detail::supportedAmendments();
auto obsoleteFeature = std::find_if(
std::begin(supportedAmendments),
std::end(supportedAmendments),
[](auto const& pair) {
return pair.second == VoteBehavior::Obsolete;
});

if (obsoleteFeature == std::end(supportedAmendments))
{
pass();
return;
}

auto const featureName = obsoleteFeature->first;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Beautiful

Comment thread include/xrpl/protocol/detail/features.macro Outdated
@a1q123456 a1q123456 added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Nov 24, 2025
@bthomee
bthomee merged commit 800a315 into develop Nov 24, 2025
3 checks passed
@bthomee
bthomee deleted the a1q123456/retire-CryptoConditionsSuite branch November 24, 2025 11:23
@mvadari mvadari added this to the 3.2.0 milestone May 20, 2026
beartec-jpg pushed a commit to beartec-jpg/FalconLedger that referenced this pull request Jun 1, 2026
Amendments activated for more than 2 years can be retired. This change retires the CryptoConditionsSuite amendment.
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.

5 participants