-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fix(baseapp): ABCI Consensus Failure Fix #16700
Merged
Merged
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
7723367
feat(x/feegrant): feegrant autcli module query (backport #16213) (#16…
mergify[bot] 4eea902
chore: prepare v0.50 alpha (#16446)
julienrbrt 2100a73
fix: StateSync Restore by excluding memory store (backport #16449) (#…
mergify[bot] 1f00d43
init
davidterpay 34f778e
changelog
davidterpay f119bd3
Merge remote-tracking branch 'upstream/main' into terpay/consensus-fix
davidterpay 1374ac1
catch up to main
davidterpay d8f5513
more catch up
davidterpay 129b4e2
nit
davidterpay 9d2ca66
unit tests
davidterpay f31efa9
Merge branch 'main' into terpay/consensus-fix
davidterpay 5f667ef
nit
davidterpay e80b14f
Merge branch 'main' into terpay/consensus-fix
davidterpay c86b1b2
cr nit
davidterpay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -724,9 +724,24 @@ func (app *BaseApp) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.Respons | |
// vote extensions, so skip those. | ||
txResults := make([]*abci.ExecTxResult, 0, len(req.Txs)) | ||
for _, rawTx := range req.Txs { | ||
var response *abci.ExecTxResult | ||
|
||
if _, err := app.txDecoder(rawTx); err == nil { | ||
txResults = append(txResults, app.deliverTx(rawTx)) | ||
response = app.deliverTx(rawTx) | ||
} else { | ||
// In the case where a transaction included in a block proposal is malformed, | ||
julienrbrt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
// we still want to return a default response to comet. This is because comet | ||
Comment on lines
724
to
+733
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change potentially affects state. Call sequence:
|
||
// expects a response for each transaction included in a block proposal. | ||
response = sdkerrors.ResponseExecTxResultWithEvents( | ||
sdkerrors.ErrTxDecode, | ||
0, | ||
0, | ||
nil, | ||
false, | ||
) | ||
} | ||
|
||
txResults = append(txResults, response) | ||
} | ||
|
||
if app.finalizeBlockState.ms.TracingEnabled() { | ||
|
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
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.
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.
nit, can you place it under the bug fixes category