rpc+peer: use pkScripts for close ntfns

This commit is contained in:
Olaoluwa Osuntokun
2018-05-30 22:18:44 -07:00
parent 55d6586a67
commit 07defe5f93
3 changed files with 8 additions and 7 deletions

View File

@@ -1083,7 +1083,7 @@ func (r *rpcServer) CloseChannel(in *lnrpc.CloseChannelRequest,
errChan = make(chan error, 1)
notifier := r.server.cc.chainNotifier
go waitForChanToClose(uint32(bestHeight), notifier, errChan, chanPoint,
&closingTxid, func() {
&closingTxid, closingTx.TxOut[0].PkScript, func() {
// Respond to the local subsystem which
// requested the channel closure.
updateChan <- &lnrpc.CloseStatusUpdate{