diff --git a/loopout.go b/loopout.go index 1fc9cdd..ebff8c3 100644 --- a/loopout.go +++ b/loopout.go @@ -306,7 +306,11 @@ func (s *loopOutSwap) sendUpdate(ctx context.Context) error { info := s.swapInfo() s.log.Infof("Loop out swap state: %v", info.State) - info.HtlcAddressP2WSH = s.htlc.Address + if s.htlc.OutputType == swap.HtlcP2WSH { + info.HtlcAddressP2WSH = s.htlc.Address + } else { + info.HtlcAddressP2TR = s.htlc.Address + } // In order to avoid potentially dangerous ownership sharing // we copy the outgoing channel set.