From d35f8a9aee2d4d38f63fd71ac6a41dfaaf8fb87d Mon Sep 17 00:00:00 2001 From: Chenyao Yu <4844716+chenyaoy@users.noreply.github.com> Date: Fri, 9 Aug 2024 16:49:02 -0400 Subject: [PATCH] fix --- protocol/x/prices/module.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/protocol/x/prices/module.go b/protocol/x/prices/module.go index c272976664..2eebce011b 100644 --- a/protocol/x/prices/module.go +++ b/protocol/x/prices/module.go @@ -4,7 +4,6 @@ import ( "context" "encoding/json" "fmt" - "time" "cosmossdk.io/core/appmodule" @@ -14,11 +13,8 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/dydxprotocol/v4-chain/protocol/lib" - "github.com/dydxprotocol/v4-chain/protocol/lib/metrics" "github.com/dydxprotocol/v4-chain/protocol/x/prices/client/cli" "github.com/dydxprotocol/v4-chain/protocol/x/prices/keeper" "github.com/dydxprotocol/v4-chain/protocol/x/prices/types" @@ -155,17 +151,5 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw return cdc.MustMarshalJSON(genState) } -// PreBlock executes all ABCI PreBlock logic respective to the prices module. -func (am AppModule) PreBlock(ctx context.Context) (appmodule.ResponsePreBlock, error) { - defer telemetry.ModuleMeasureSince(am.Name(), time.Now(), metrics.PreBlocker) - PreBlocker( - lib.UnwrapSDKContext(ctx, types.ModuleName), - am.keeper, - ) - return sdk.ResponsePreBlock{ - ConsensusParamsChanged: false, - }, nil -} - // ConsensusVersion implements ConsensusVersion. func (AppModule) ConsensusVersion() uint64 { return 1 }