-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat(core): add begin/end block extension interfaces #14604
Conversation
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.
Remind me, how will we track validator updates? Ultimately I believe these will be returned in FinalizeBlock
, at which point, Begin/EndBlock
are solely application methods.
This is what I'm proposing: https://github.com/cosmos/cosmos-sdk/pull/12972/files#diff-ad6d86070e8d6bfe68ff82947bc1681dd77ecc133bf6992d65bcdf0b930c1b9bR364-R373. |
|
||
// HasBeginBlocker is the extension interface that modules should implement to run | ||
// custom logic before transaction processing in a block. | ||
type HasBeginBlocker interface { |
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.
👍🏾 I prefer this name instead of https://pkg.go.dev/github.com/cosmos/cosmos-sdk@v0.46.7/types/module#BeginBlockAppModule
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.
interface lgtm
Are you okay with this @tac0turtle @alexanderbez ? |
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.
yea im a fan of this. Just the nit from Julien
What's the nit? |
|
That seems like he's saying he likes the name in this PR better. Am I missing something? |
…api-begin-end-block
oh my bad, read it wrong |
(cherry picked from commit fa7ff32) # Conflicts: # core/appmodule/module.go
Description
This adds begin and end blocker extension interfaces to the
cosmossdk.io/core/appmodule
API. Support can be added to main and the 0.47.x branch after this is merged.Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change