diff --git a/relayer/packet-tx.go b/relayer/packet-tx.go index ecc2146e0..1cb38c7b3 100644 --- a/relayer/packet-tx.go +++ b/relayer/packet-tx.go @@ -113,7 +113,15 @@ func (c *Chain) SendTransferMsg(ctx context.Context, log *zap.Logger, dst *Chain ) } return err + } else { + if result.SuccessfullySent() { + c.log.Info( + "Successfully sent a transfer", + zap.String("src_chain_id", c.ChainID()), + zap.String("dst_chain_id", dst.ChainID()), + zap.Object("send_result", result), + ) + } } - return nil } diff --git a/relayer/relayMsgs.go b/relayer/relayMsgs.go index 52d95f160..698e8b28a 100644 --- a/relayer/relayMsgs.go +++ b/relayer/relayMsgs.go @@ -108,6 +108,11 @@ type SendMsgsResult struct { SrcSendError, DstSendError error } +// SuccessfullySent reports the presence successfully sent batches +func (r SendMsgsResult) SuccessfullySent() bool { + return (r.SuccessfulSrcBatches > 0 || r.SuccessfulDstBatches > 0) +} + // PartiallySent reports the presence of both some successfully sent batches // and some errors. func (r SendMsgsResult) PartiallySent() bool {