lnwallet/chanclose: update ProcessCloseMsg to check co-op close addrs

We only want to allow p2wkh, p2tr, and p2wsh addresses, so we'll utilize
the newly public wallet function to restrict this.
This commit is contained in:
Olaoluwa Osuntokun
2022-06-10 11:17:20 -07:00
parent c79ffc07ce
commit a61b6c25b3
3 changed files with 109 additions and 37 deletions

View File

@@ -2716,7 +2716,8 @@ func (p *Brontide) createChanCloser(channel *lnwallet.LightningChannel,
Disconnect: func() error {
return p.cfg.DisconnectPeer(p.IdentityKey())
},
Quit: p.quit,
ChainParams: &p.cfg.Wallet.Cfg.NetParams,
Quit: p.quit,
},
deliveryScript,
fee,