Sponsored Content
Skip to content

Retire fixAmendmentMajorityCalc - #5961

Merged
bthomee merged 7 commits into
developfrom
a1q123456/retire-fixAmendmentMajorityCalc
Oct 31, 2025
Merged

Retire fixAmendmentMajorityCalc#5961
bthomee merged 7 commits into
developfrom
a1q123456/retire-fixAmendmentMajorityCalc

Conversation

@a1q123456

@a1q123456 a1q123456 commented Oct 29, 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)

@a1q123456
a1q123456 requested review from a team, pratikmankawde and vvysokikh1 and removed request for a team October 29, 2025 14:27
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
@a1q123456
a1q123456 force-pushed the a1q123456/retire-fixAmendmentMajorityCalc branch from 839b140 to 4e5bd13 Compare October 29, 2025 14:32

constexpr std::ratio<80, 100> postFixAmendmentMajorityCalcThreshold;
/** The minimum amount of support an amendment should have. */
constexpr std::ratio<80, 100> amendmentMajorityCalcThreshold;

@pratikmankawde pratikmankawde Oct 29, 2025

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.

Is there no naming convention for the constexpr global variable? Also, can it be moved to cpp file?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i’d rather having it defined here as this file defines system parameters. And yeah, I do think those variable names are a bit messy, some of them are all uppercase and some of them are different. I think we should refactor them in the future

Comment thread src/xrpld/app/misc/detail/AmendmentTable.cpp Outdated
@codecov

codecov Bot commented Oct 29, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.3%. Comparing base (fa69918) to head (4afa260).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #5961     +/-   ##
=========================================
- Coverage     78.3%   78.3%   -0.0%     
=========================================
  Files          817     817             
  Lines        69003   68978     -25     
  Branches      8318    8319      +1     
=========================================
- Hits         54028   54007     -21     
+ Misses       14975   14971      -4     
Files with missing lines Coverage Δ
include/xrpl/protocol/SystemParameters.h 100.0% <ø> (ø)
src/xrpld/app/misc/detail/AmendmentTable.cpp 93.7% <100.0%> (-0.2%) ⬇️

... and 5 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.

Signed-off-by: JCW <a1q123456@users.noreply.github.com>
Signed-off-by: JCW <a1q123456@users.noreply.github.com>

@pratikmankawde pratikmankawde left a comment

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.

LGTM

@a1q123456
a1q123456 requested a review from vvysokikh1 October 31, 2025 11:21
Comment thread src/xrpld/app/misc/detail/AmendmentTable.cpp
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
@a1q123456
a1q123456 requested a review from vvysokikh1 October 31, 2025 15:23
@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 Oct 31, 2025
@bthomee
bthomee enabled auto-merge (squash) October 31, 2025 17:26
@bthomee
bthomee disabled auto-merge October 31, 2025 17:27
Comment thread include/xrpl/protocol/detail/features.macro Outdated
@bthomee
bthomee enabled auto-merge (squash) October 31, 2025 19:35
@bthomee
bthomee merged commit dfafb14 into develop Oct 31, 2025
3 checks passed
@bthomee
bthomee deleted the a1q123456/retire-fixAmendmentMajorityCalc branch October 31, 2025 20:01
@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 fixAmendmentMajorityCalc 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.

6 participants