From 77398d3751921077711a7784d9611e8184371f07 Mon Sep 17 00:00:00 2001 From: lumtis Date: Thu, 1 Feb 2024 15:47:33 -0800 Subject: [PATCH] lint --- x/crosschain/keeper/abci.go | 3 ++- x/crosschain/module.go | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/x/crosschain/keeper/abci.go b/x/crosschain/keeper/abci.go index 61486b2ef2..cc9d7acaac 100644 --- a/x/crosschain/keeper/abci.go +++ b/x/crosschain/keeper/abci.go @@ -2,9 +2,10 @@ package keeper import ( "fmt" - "github.com/zeta-chain/zetacore/common" "time" + "github.com/zeta-chain/zetacore/common" + cosmoserrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/crosschain/module.go b/x/crosschain/module.go index ec961b7046..4f671e4b6b 100644 --- a/x/crosschain/module.go +++ b/x/crosschain/module.go @@ -188,7 +188,9 @@ func (AppModule) ConsensusVersion() uint64 { return 4 } // BeginBlock executes all ABCI BeginBlock logic respective to the crosschain module. func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) { - am.keeper.IterateAndUpdateCctxGasPrice(ctx) + // iterate and update gas price for cctx that are pending for too long + // NOTE: error is logged and ignored in the function + _ = am.keeper.IterateAndUpdateCctxGasPrice(ctx) } // EndBlock executes all ABCI EndBlock logic respective to the crosschain module. It