mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-25 13:12:11 +02:00
grab the full script instead of just the hash for the change addr
This commit is contained in:
@@ -381,8 +381,15 @@ func (l *LightningWallet) handleFundingReserveRequest(req *initFundingReserveMsg
|
|||||||
req.resp <- nil
|
req.resp <- nil
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
changeAddrScript := addrs[0].AddrHash()
|
changeAddrScript, err := txscript.PayToAddrScript(addrs[0].Address())
|
||||||
// TODO(roasbeef): re-enable after test are connected to real node.
|
if err != nil {
|
||||||
|
req.err <- err
|
||||||
|
req.resp <- nil
|
||||||
|
return
|
||||||
|
}
|
||||||
|
// TODO(roasbeef): re-enable after tests are connected to real node.
|
||||||
|
// * or the change to btcwallet is made to reverse the dependancy
|
||||||
|
// between chain-client and wallet.
|
||||||
//changeAddr, err := l.wallet.NewChangeAddress(waddrmgr.DefaultAccountNum)
|
//changeAddr, err := l.wallet.NewChangeAddress(waddrmgr.DefaultAccountNum)
|
||||||
|
|
||||||
partialState.ourChange = append(partialState.ourChange,
|
partialState.ourChange = append(partialState.ourChange,
|
||||||
|
Reference in New Issue
Block a user