-
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
Problem: gas_used differs in getting of consensusParams when enable cache #605
Problem: gas_used differs in getting of consensusParams when enable cache #605
Conversation
…rnations of same tx (cosmos#565)" This reverts commit 5a1594f.
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.
Can you describe the issue first, and do we run out of options to fix it?
EDIT: I think it's fine to revert cosmos-sdk part, since the ethermint side is used most.
I'm not sure if we can align the gas_used since there'd be less GetConsensusParams when enable cache. Or do you mean we record the gas_used like f33944e |
@@ -842,8 +842,8 @@ func (app *BaseApp) internalFinalizeBlock(ctx context.Context, req *abci.Request | |||
|
|||
func (app *BaseApp) executeTxs(ctx context.Context, txs [][]byte) ([]*abci.ExecTxResult, error) { | |||
if app.txExecutor != nil { | |||
return app.txExecutor(ctx, len(txs), app.finalizeBlockState.ms, func(i int, ms storetypes.MultiStore, incarnationCache map[string]any) *abci.ExecTxResult { | |||
return app.deliverTxWithMultiStore(txs[i], i, ms, incarnationCache) | |||
return app.txExecutor(ctx, len(txs), app.finalizeBlockState.ms, func(i int, ms storetypes.MultiStore) *abci.ExecTxResult { |
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.
txExecutor interface need to keep too.
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.
we just need get and set right? Do you mean keep txExecutor but pass nil?
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.
stm executor will pass non-nil cache.
Diff doesn't come from consensusParams but from auth ante handler which was fixed before |
Revert "Problem: signature verification result not cache between incarnations of same tx (#565)"
This reverts commit 5a1594f.
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...
!
in 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...