fix(baseapp): don't share global gas meter in tx execution (#19616)
This commit is contained in:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user