diff --git a/protocol/app/ante.go b/protocol/app/ante.go index 96cc663c7c..982d625f71 100644 --- a/protocol/app/ante.go +++ b/protocol/app/ante.go @@ -1,18 +1,21 @@ package app import ( + "sync" + errorsmod "cosmossdk.io/errors" "cosmossdk.io/store/cachemulti" storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/auth/ante" authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" - "sync" customante "github.com/dydxprotocol/v4-chain/protocol/app/ante" libante "github.com/dydxprotocol/v4-chain/protocol/lib/ante" + "github.com/dydxprotocol/v4-chain/protocol/lib/metrics" clobante "github.com/dydxprotocol/v4-chain/protocol/x/clob/ante" clobtypes "github.com/dydxprotocol/v4-chain/protocol/x/clob/types" ) @@ -229,6 +232,12 @@ func (h *lockingAnteHandler) clobAnteHandle(ctx sdk.Context, tx sdk.Tx, simulate defer h.globalLock.Unlock() } + telemetry.IncrCounter( + 1, + "roy_clob_tx", + metrics.Count, + ) + if ctx, err = h.clobRateLimit.AnteHandle(ctx, tx, simulate, noOpAnteHandle); err != nil { return ctx, err }