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