forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 5
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: introduce PreBlock #186
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yihuang
reviewed
Aug 16, 2023
yihuang
reviewed
Aug 16, 2023
yihuang
reviewed
Aug 16, 2023
yihuang
reviewed
Aug 16, 2023
yihuang
reviewed
Aug 16, 2023
yihuang
reviewed
Aug 16, 2023
yihuang
reviewed
Aug 16, 2023
yihuang
reviewed
Aug 16, 2023
yihuang
reviewed
Aug 17, 2023
yihuang
reviewed
Aug 17, 2023
yihuang
reviewed
Aug 17, 2023
yihuang
reviewed
Aug 17, 2023
yihuang
reviewed
Aug 17, 2023
yihuang
reviewed
Aug 17, 2023
yihuang
reviewed
Aug 17, 2023
yihuang
reviewed
Aug 17, 2023
yihuang
approved these changes
Aug 17, 2023
if app.preBlocker != nil { | ||
rsp, err := app.preBlocker(ctx, req) | ||
if err != nil { | ||
panic(fmt.Errorf("preBlock failed, height: %d, err: %w", req.Header.Height, err)) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
path flow from Begin/EndBlock to a panic call
if app.preBlocker != nil { | ||
rsp, err := app.preBlocker(ctx, req) | ||
if err != nil { | ||
panic(fmt.Errorf("preBlock failed, height: %d, err: %w", req.Header.Height, err)) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
mmsqe
force-pushed
the
release/v0.47.x_cp
branch
from
August 22, 2023 02:15
51a9f5c
to
03beead
Compare
yihuang
approved these changes
Aug 22, 2023
yihuang
changed the title
fix: Add MigrationModuleManager to handle migration of upgrade module before other modules
feat: introduce PreBlock
Aug 23, 2023
mmsqe
force-pushed
the
release/v0.47.x_cp
branch
from
September 5, 2023 03:45
580d7d3
to
03beead
Compare
yihuang
approved these changes
Sep 5, 2023
… before other modules (cosmos#16583) Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: Julien Robert <[email protected]> (cherry picked from commit 0c1f6fc) # Conflicts: # CHANGELOG.md # UPGRADING.md # baseapp/baseapp.go # docs/docs/building-modules/01-module-manager.md # docs/docs/core/00-baseapp.md # testutil/mock/types_mock_appmodule.go # types/module/module.go # types/module/module_test.go
…smos#17373) Co-authored-by: Julien Robert <[email protected]>
Co-authored-by: yihuang <[email protected]> Signed-off-by: mmsqe <[email protected]>
Co-authored-by: yihuang <[email protected]> Signed-off-by: mmsqe <[email protected]>
Co-authored-by: yihuang <[email protected]> Signed-off-by: mmsqe <[email protected]>
Co-authored-by: yihuang <[email protected]> Signed-off-by: mmsqe <[email protected]>
This reverts commit b6ae07f.
mmsqe
force-pushed
the
release/v0.47.x_cp
branch
from
September 5, 2023 04:08
cefcd19
to
5b5211b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Closes: #XXXX
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