diff --git a/rpcserver.go b/rpcserver.go index 2a8c6d09..a23e28e1 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -712,6 +712,7 @@ func (r *rpcServer) OpenChannel(in *lnrpc.OpenChannelRequest, localFundingAmt := btcutil.Amount(in.LocalFundingAmount) remoteInitialBalance := btcutil.Amount(in.PushSat) minHtlc := lnwire.MilliSatoshi(in.MinHtlcMsat) + remoteCsvDelay := uint16(in.RemoteCsvDelay) // Ensure that the initial balance of the remote party (if pushing // satoshis) does not exceed the amount the local party has requested @@ -785,7 +786,7 @@ func (r *rpcServer) OpenChannel(in *lnrpc.OpenChannelRequest, updateChan, errChan := r.server.OpenChannel( nodePubKey, localFundingAmt, lnwire.NewMSatFromSatoshis(remoteInitialBalance), - minHtlc, feeRate, in.Private, + minHtlc, feeRate, in.Private, remoteCsvDelay, ) var outpoint wire.OutPoint @@ -880,6 +881,7 @@ func (r *rpcServer) OpenChannelSync(ctx context.Context, localFundingAmt := btcutil.Amount(in.LocalFundingAmount) remoteInitialBalance := btcutil.Amount(in.PushSat) minHtlc := lnwire.MilliSatoshi(in.MinHtlcMsat) + remoteCsvDelay := uint16(in.RemoteCsvDelay) // Ensure that the initial balance of the remote party (if pushing // satoshis) does not exceed the amount the local party has requested @@ -912,7 +914,7 @@ func (r *rpcServer) OpenChannelSync(ctx context.Context, updateChan, errChan := r.server.OpenChannel( nodepubKey, localFundingAmt, lnwire.NewMSatFromSatoshis(remoteInitialBalance), - minHtlc, feeRate, in.Private, + minHtlc, feeRate, in.Private, remoteCsvDelay, ) select {