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

Add BlockAction flag to ActionContext #3764

Merged
merged 4 commits into from
Apr 23, 2024

Conversation

limebell
Copy link
Member

Previously ActionContext.BlockAction was determined by nullability of TxId field, became to take argument directly.

Fixed bug where TxActions' signer was block's proposer, not tx's.

Skips changelog because all API changes are internal.

@limebell limebell requested review from OnedgeLee, s2quake, greymistcube and riemannulus and removed request for s2quake April 22, 2024 10:34
@limebell limebell added the bug Something isn't working label Apr 22, 2024
Copy link
Contributor

@s2quake s2quake left a comment

Choose a reason for hiding this comment

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

It is common practice in .NET to prefix a bool type identifier with 'Is'. For example, refer to the following link: https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/identifier-names.
The link does not specifically mention identifier names for bool types, but the example code in the link uses the is prefix. Your style preference may differ, but I would suggest using isBlockAction. blockAction seems like an instance of an action to me.

@limebell limebell requested a review from s2quake April 23, 2024 05:22
@limebell limebell merged commit 2088719 into planetarium:exp/dpos Apr 23, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants