mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 06:25:47 +00:00
removed log line
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
87a4384891
commit
c4f814b4dd
@ -2,13 +2,11 @@ package ante
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
|
||||||
|
|
||||||
errorsmod "cosmossdk.io/errors"
|
errorsmod "cosmossdk.io/errors"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
|
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
|
||||||
"github.com/planetmint/planetmint-go/util"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ GasTx = (*legacytx.StdTx)(nil) // assert StdTx implements GasTx
|
var _ GasTx = (*legacytx.StdTx)(nil) // assert StdTx implements GasTx
|
||||||
@ -36,7 +34,6 @@ func NewSetUpContextDecorator(dk DaoKeeper) SetUpContextDecorator {
|
|||||||
|
|
||||||
func (sud SetUpContextDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
func (sud SetUpContextDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
||||||
// all transactions must implement GasTx
|
// all transactions must implement GasTx
|
||||||
util.GetAppLogger().Debug(ctx, "BLOCKHEIGHT : "+strconv.FormatInt(ctx.BlockHeight(), 10))
|
|
||||||
gasTx, ok := tx.(GasTx)
|
gasTx, ok := tx.(GasTx)
|
||||||
if !ok {
|
if !ok {
|
||||||
// Set a gas meter with limit 0 as to prevent an infinite gas meter attack
|
// Set a gas meter with limit 0 as to prevent an infinite gas meter attack
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user