mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loop: fill the correct HTLC in loopout update
This commit is contained in:
parent
c3371fead1
commit
06fd21fd05
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue