server: use private parameter when opening channel
This commit is contained in:
parent
17c98473d9
commit
9fcb845bd2
@ -1453,6 +1453,8 @@ type openChanReq struct {
|
|||||||
|
|
||||||
fundingFeePerWeight btcutil.Amount
|
fundingFeePerWeight btcutil.Amount
|
||||||
|
|
||||||
|
private bool
|
||||||
|
|
||||||
// TODO(roasbeef): add ability to specify channel constraints as well
|
// TODO(roasbeef): add ability to specify channel constraints as well
|
||||||
|
|
||||||
updates chan *lnrpc.OpenStatusUpdate
|
updates chan *lnrpc.OpenStatusUpdate
|
||||||
@ -1570,7 +1572,8 @@ func (s *server) DisconnectPeer(pubKey *btcec.PublicKey) error {
|
|||||||
// NOTE: This function is safe for concurrent access.
|
// NOTE: This function is safe for concurrent access.
|
||||||
func (s *server) OpenChannel(peerID int32, nodeKey *btcec.PublicKey,
|
func (s *server) OpenChannel(peerID int32, nodeKey *btcec.PublicKey,
|
||||||
localAmt btcutil.Amount, pushAmt lnwire.MilliSatoshi,
|
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)
|
updateChan := make(chan *lnrpc.OpenStatusUpdate, 1)
|
||||||
errChan := make(chan error, 1)
|
errChan := make(chan error, 1)
|
||||||
@ -1630,6 +1633,7 @@ func (s *server) OpenChannel(peerID int32, nodeKey *btcec.PublicKey,
|
|||||||
localFundingAmt: localAmt,
|
localFundingAmt: localAmt,
|
||||||
fundingFeePerWeight: fundingFeePerWeight,
|
fundingFeePerWeight: fundingFeePerWeight,
|
||||||
pushAmt: pushAmt,
|
pushAmt: pushAmt,
|
||||||
|
private: private,
|
||||||
updates: updateChan,
|
updates: updateChan,
|
||||||
err: errChan,
|
err: errChan,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user