mirror of
https://github.com/lightninglabs/loop
synced 2024-11-04 06:00:21 +00:00
Merge pull request #725 from bhandras/swap-info-fixup
loop: fill the correct HTLC in loopout update
This commit is contained in:
commit
6ac6ee0549
@ -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…
Reference in New Issue
Block a user