rpc+peer: use pkScripts for close ntfns

This commit is contained in:
Olaoluwa Osuntokun committed 2018-07-31 21:28:52 -07:00
1 parent 55d6586a67
commit 07defe5f93
3 files changed
+8 -7

No files matched your search

+1 -1
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{