Merge pull request #725 from bhandras/swap-info-fixup

loop: fill the correct HTLC in loopout update
lnd-18-preparation
András Bánki-Horváth 1 month ago committed by GitHub
commit 6ac6ee0549
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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.

Loading…
Cancel
Save