Skip to content

Commit

Permalink
update comments for SetCctxAndNonceToCctxAndInboundHashToCctx
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Nov 28, 2024
1 parent 6d4a4cf commit c50a6ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/crosschain/keeper/cctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (k Keeper) SetNonceToCCTXMapping(

// SetCrossChainTx set a specific cctx in the store from its index
func (k Keeper) SetCrossChainTx(ctx sdk.Context, cctx types.CrossChainTx) {
// only set the update timestamp if the block height is >0 to allow
// only set the updated timestamp if the block height is >0 to allow
// for a genesis import
if cctx.CctxStatus != nil && ctx.BlockHeight() > 0 {
cctx.CctxStatus.LastUpdateTimestamp = ctx.BlockHeader().Time.Unix()
Expand Down
3 changes: 2 additions & 1 deletion x/crosschain/keeper/msg_server_abort_stuck_cctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ func (k msgServer) AbortStuckCCTX(
// update the status
cctx.CctxStatus.UpdateStatusAndErrorMessages(types.CctxStatus_Aborted, AbortMessage, "")

// Save out outbound, we do not need to provide the tss-pubkey as NonceToCctx is not updated
// Save out outbound,
// We do not need to provide the tss-pubkey as NonceToCctx is not updated / New outbound is not added
k.SaveOutbound(ctx, &cctx, "")

return &types.MsgAbortStuckCCTXResponse{}, nil
Expand Down

0 comments on commit c50a6ea

Please sign in to comment.