From 9fcb845bd2b00e08b8fce0fc2544786fc7b46910 Mon Sep 17 00:00:00 2001 From: nsa Date: Mon, 13 Nov 2017 15:48:54 -0800 Subject: [PATCH] server: use private parameter when opening channel --- server.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server.go b/server.go index b23ff006..58c1cdda 100644 --- a/server.go +++ b/server.go @@ -1453,6 +1453,8 @@ type openChanReq struct { fundingFeePerWeight btcutil.Amount + private bool + // TODO(roasbeef): add ability to specify channel constraints as well updates chan *lnrpc.OpenStatusUpdate @@ -1570,7 +1572,8 @@ func (s *server) DisconnectPeer(pubKey *btcec.PublicKey) error { // NOTE: This function is safe for concurrent access. func (s *server) OpenChannel(peerID int32, nodeKey *btcec.PublicKey, localAmt btcutil.Amount, pushAmt lnwire.MilliSatoshi, - fundingFeePerByte btcutil.Amount) (chan *lnrpc.OpenStatusUpdate, chan error) { + fundingFeePerByte btcutil.Amount, + private bool) (chan *lnrpc.OpenStatusUpdate, chan error) { updateChan := make(chan *lnrpc.OpenStatusUpdate, 1) errChan := make(chan error, 1) @@ -1630,6 +1633,7 @@ func (s *server) OpenChannel(peerID int32, nodeKey *btcec.PublicKey, localFundingAmt: localAmt, fundingFeePerWeight: fundingFeePerWeight, pushAmt: pushAmt, + private: private, updates: updateChan, err: errChan, }