fix(baseapp): don't share global gas meter in tx execution (#19616)
This commit is contained in:
parent
369847cfd3
commit
4ed8c8431d
@ -116,6 +116,7 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i
|
||||
* (crypto) [#20027](https://github.com/cosmos/cosmos-sdk/pull/20027) secp256r1 keys now implement gogoproto's customtype interface.
|
||||
* (x/bank) [#20028](https://github.com/cosmos/cosmos-sdk/pull/20028) Align query with multi denoms for send-enabled.
|
||||
* (cli) [#20020](https://github.com/cosmos/cosmos-sdk/pull/20020) Make bootstrap-state command support both new and legacy genesis format.
|
||||
* (baseapp) [#19616](https://github.com/cosmos/cosmos-sdk/pull/19616) Don't share gas meter in tx execution.
|
||||
|
||||
### API Breaking Changes
|
||||
|
||||
|
||||
@ -666,7 +666,8 @@ func (app *BaseApp) getContextForTx(mode execMode, txBytes []byte) sdk.Context {
|
||||
panic(fmt.Sprintf("state is nil for mode %v", mode))
|
||||
}
|
||||
ctx := modeState.Context().
|
||||
WithTxBytes(txBytes)
|
||||
WithTxBytes(txBytes).
|
||||
WithGasMeter(storetypes.NewInfiniteGasMeter())
|
||||
// WithVoteInfos(app.voteInfos) // TODO: identify if this is needed
|
||||
|
||||
ctx = ctx.WithIsSigverifyTx(app.sigverifyTx)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user