Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaoy committed Aug 9, 2024
1 parent deb3777 commit d35f8a9
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions protocol/x/prices/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"fmt"
"time"

"cosmossdk.io/core/appmodule"

Expand All @@ -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"
Expand Down Expand Up @@ -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 }

0 comments on commit d35f8a9

Please sign in to comment.