diff --git a/.github/workflows/protocol-build-and-push-snapshot.yml b/.github/workflows/protocol-build-and-push-snapshot.yml index 51ffb24193..4c644bc3fb 100644 --- a/.github/workflows/protocol-build-and-push-snapshot.yml +++ b/.github/workflows/protocol-build-and-push-snapshot.yml @@ -3,6 +3,7 @@ name: Protocol Build & Push Image to AWS ECR on: # yamllint disable-line rule:truthy push: branches: + - roy/roy1 - main - 'release/[a-z]+/v0.[0-9]+.x' # e.g. release/protocol/v0.1.x - 'release/[a-z]+/v[0-9]+.x' # e.g. release/protocol/v1.x diff --git a/.github/workflows/protocol-build-and-push.yml b/.github/workflows/protocol-build-and-push.yml index b2463692f7..74072e5d3d 100644 --- a/.github/workflows/protocol-build-and-push.yml +++ b/.github/workflows/protocol-build-and-push.yml @@ -3,6 +3,7 @@ name: Protocol Build & Push Image to AWS ECR on: # yamllint disable-line rule:truthy push: branches: + - roy/roy1 - main - 'release/[a-z]+/v0.[0-9]+.x' # e.g. release/protocol/v0.1.x - 'release/[a-z]+/v[0-9]+.x' # e.g. release/protocol/v1.x 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 }