-
Notifications
You must be signed in to change notification settings - Fork 13
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
HookEmit #392
base: dev
Are you sure you want to change the base?
HookEmit #392
Conversation
hopefully we'll get this into the release after next |
Due to waiting for the probability of a deterministic build, I don’t add enough tests at this time. |
I think HookEmit is a bit of a confusing label? Maybe HookEmittable? Or HookCanEmit |
@RichardAH |
I agree it's not totally clear even though it is nice and concise. There's arguments to be made for various names that prioritize brevity, for consistency with existing fields etc, but clarity is important for approachability too. I've chatted to various AIs and they'll be adamant initially that HookEmit is the best, but then can yield to various arguments. I was drawn to HookCanEmit initially as it's very clear. What about sfEmitMask ? The hook definition already has sfCreateCode as exception to any perceived Hook* naming convention. |
|
||
uint256 hookEmit = | ||
(hookObj.isFieldPresent(sfHookEmit) | ||
? hookObj.getFieldH256(sfHookEmit) |
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.
Maybe a helper function for this
close #365
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
)