File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ func (k *Keeper) EndBlock(ctx sdk.Context) error {
4141 }
4242
4343 k .CollectTxBloom (ctx )
44- k .ResetTransientGasUsed (ctx )
4544
4645 return nil
4746}
Original file line number Diff line number Diff line change @@ -361,19 +361,6 @@ func (k Keeper) GetMinGasPrice(ctx sdk.Context) math.LegacyDec {
361361 return k .feeMarketWrapper .GetParams (ctx ).MinGasPrice
362362}
363363
364- // ResetTransientGasUsed reset gas used to prepare for execution of cosmos tx, called in EndBlocker.
365- func (k Keeper ) ResetTransientGasUsed (ctx sdk.Context ) {
366- store := prefix .NewObjStore (ctx .ObjectStore (k .objectKey ),
367- types .KeyPrefixObjectGasUsed )
368- it := store .Iterator (nil , nil )
369-
370- defer it .Close ()
371-
372- for ; it .Valid (); it .Next () {
373- store .Delete (it .Key ())
374- }
375- }
376-
377364// GetTransientGasUsed returns the gas used by current cosmos tx.
378365func (k Keeper ) GetTransientGasUsed (ctx sdk.Context ) uint64 {
379366 store := ctx .ObjectStore (k .objectKey )
You can’t perform that action at this time.
0 commit comments