Skip to content

Commit

Permalink
add log lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Jan 11, 2024
1 parent a79b057 commit fe7339c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/crosschain/keeper/msg_server_vote_inbound_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit fe7339c

Please sign in to comment.