Skip to content

Commit f5c9459

Browse files
committed
cleanup ResetTransientGasUsed
1 parent 68ef5bc commit f5c9459

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

x/vm/keeper/abci.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

x/vm/keeper/keeper.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff 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.
378365
func (k Keeper) GetTransientGasUsed(ctx sdk.Context) uint64 {
379366
store := ctx.ObjectStore(k.objectKey)

0 commit comments

Comments
 (0)