Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RXI-1397 flag check for credentials #5250

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

oleks-rip
Copy link
Collaborator

@oleks-rip oleks-rip commented Jan 17, 2025

High Level Overview of Change

Add transaction flag checking functionality for Credentials

Context of Change

CredentialCreate / CredentialAccept / CredentialDelete transactions will check sfFlags field in preflight()

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.0%. Comparing base (ebd8e63) to head (4444d42).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           develop   #5250   +/-   ##
=======================================
  Coverage     78.0%   78.0%           
=======================================
  Files          789     789           
  Lines        66955   66967   +12     
  Branches      8132    8108   -24     
=======================================
+ Hits         52223   52233   +10     
- Misses       14732   14734    +2     
Files with missing lines Coverage Δ
include/xrpl/protocol/Feature.h 100.0% <ø> (ø)
src/xrpld/app/tx/detail/Credentials.cpp 96.9% <100.0%> (+0.2%) ⬆️

... and 2 files with indirect coverage changes

Impacted file tree graph

include/xrpl/protocol/detail/features.macro Outdated Show resolved Hide resolved
src/test/app/Credentials_test.cpp Outdated Show resolved Hide resolved
@@ -29,6 +29,8 @@
// If you add an amendment here, then do not forget to increment `numFeatures`
// in include/xrpl/protocol/Feature.h.

// fix1782: Check flags in Credential transactions
XRPL_FIX (1782, Supported::yes, VoteBehavior::DefaultNo)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please give this a meaningful name. We want people who don't have access to our internal ticketing system to still get some info from the name. CredentialFlags should be fine.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

renamed

@Bronek Bronek self-requested a review January 20, 2025 11:39
@dangell7
Copy link
Collaborator

The flag check is also missing on other transactions. Should we add the flag check to other transactions as well? I believe the other one is SignerListSet.

@Bronek
Copy link
Collaborator

Bronek commented Jan 20, 2025

@dangell7 makes sense, but it should be a different amendment (we do not want this amendment to be rejected by operators, because of compatibility anxiety)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants