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, }