From fe7339c798cad8727b88aee742df334ddce0f355 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Thu, 11 Jan 2024 15:11:25 -0500 Subject: [PATCH] add log lines --- x/crosschain/keeper/msg_server_vote_inbound_tx.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x/crosschain/keeper/msg_server_vote_inbound_tx.go b/x/crosschain/keeper/msg_server_vote_inbound_tx.go index 403e53ef6d..31825d2d24 100644 --- a/x/crosschain/keeper/msg_server_vote_inbound_tx.go +++ b/x/crosschain/keeper/msg_server_vote_inbound_tx.go @@ -98,13 +98,12 @@ func (k msgServer) VoteOnObservedInboundTx(goCtx context.Context, msg *types.Msg if err != nil { return nil, err } - _, isFinalizedInThisBlock := k.zetaObserverKeeper.CheckIfFinalizingVote(ctx, ballot) if !isFinalizedInThisBlock { // Return nil here to add vote to ballot and commit state return &types.MsgVoteOnObservedInboundTxResponse{}, nil } - + // Check if the inbound has already been processed. if k.IsFinalizedInbound(ctx, msg.InTxHash, msg.SenderChainId, msg.EventIndex) { return nil, errorsmod.Wrap(types.ErrObservedTxAlreadyFinalized, fmt.Sprintf("InTxHash %s, SenderChainID %d, EventIndex %d", msg.InTxHash, msg.SenderChainId, msg.EventIndex)) }