-
Notifications
You must be signed in to change notification settings - Fork 15
Remarks amendment #301
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
Remarks amendment #301
Conversation
This reverts commit 63b0245.
|
||
namespace ripple { | ||
namespace test { | ||
struct SetRemarks_test : public beast::unit_test::suite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when these tests are finished I'm probably ready to merge
77b8c83
to
532a471
Compare
if (tx.isFieldPresent(sfFlags) && tx.getFieldU32(sfFlags) != 0) | ||
{ | ||
JLOG(j.warn()) << "SetRemarks: Invalid flags set."; | ||
return temMALFORMED; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should only allow lsfImmutable
?
And temINVALID_FLAG
is better thantemMALFORMED
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the immutable flag is only for each individual remark object in the remarks array, it's not a transaction level flag. good point about the tem code though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case for tfFullyCanonicalSig is specified,
if (ctx.tx.getFlags() & tfUniversalMask)
would be better, no?
This PR may not be the right place to address this, but ClaimReward has the same problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please PR claimreward
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Denis Angell <[email protected]>
High Level Overview of Change
Context of Change
Type of Change
.gitignore
, formatting, dropping support for older tooling)API Impact
libxrpl
change (any change that may affectlibxrpl
or dependents oflibxrpl
)