loop: fill the correct HTLC in loopout update

pull/725/head
Andras Banki-Horvath 1 month ago
parent c3371fead1
commit 06fd21fd05
No known key found for this signature in database
GPG Key ID: 80E5375C094198D8

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