rpcserver: forward private parameter to OpenChannel

This commit is contained in:
nsa 2017-11-13 15:50:32 -08:00 committed by Olaoluwa Osuntokun
parent 5c4add8e0e
commit 3beef359a2

View File

@ -627,7 +627,7 @@ func (r *rpcServer) OpenChannel(in *lnrpc.OpenChannelRequest,
updateChan, errChan := r.server.OpenChannel(
in.TargetPeerId, nodePubKey, localFundingAmt,
lnwire.NewMSatFromSatoshis(remoteInitialBalance),
feePerByte,
feePerByte, in.Private,
)
var outpoint wire.OutPoint
@ -746,7 +746,7 @@ func (r *rpcServer) OpenChannelSync(ctx context.Context,
updateChan, errChan := r.server.OpenChannel(
in.TargetPeerId, nodepubKey, localFundingAmt,
lnwire.NewMSatFromSatoshis(remoteInitialBalance),
feePerByte,
feePerByte, in.Private,
)
select {