mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
rpcserver: pass incoming RemoteCsvDelay to server.OpenChannel
This commit is contained in:
parent
6f98803967
commit
938aefb573
1 changed files with 4 additions and 2 deletions
|
@ -712,6 +712,7 @@ func (r *rpcServer) OpenChannel(in *lnrpc.OpenChannelRequest,
|
||||||
localFundingAmt := btcutil.Amount(in.LocalFundingAmount)
|
localFundingAmt := btcutil.Amount(in.LocalFundingAmount)
|
||||||
remoteInitialBalance := btcutil.Amount(in.PushSat)
|
remoteInitialBalance := btcutil.Amount(in.PushSat)
|
||||||
minHtlc := lnwire.MilliSatoshi(in.MinHtlcMsat)
|
minHtlc := lnwire.MilliSatoshi(in.MinHtlcMsat)
|
||||||
|
remoteCsvDelay := uint16(in.RemoteCsvDelay)
|
||||||
|
|
||||||
// Ensure that the initial balance of the remote party (if pushing
|
// Ensure that the initial balance of the remote party (if pushing
|
||||||
// satoshis) does not exceed the amount the local party has requested
|
// 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(
|
updateChan, errChan := r.server.OpenChannel(
|
||||||
nodePubKey, localFundingAmt,
|
nodePubKey, localFundingAmt,
|
||||||
lnwire.NewMSatFromSatoshis(remoteInitialBalance),
|
lnwire.NewMSatFromSatoshis(remoteInitialBalance),
|
||||||
minHtlc, feeRate, in.Private,
|
minHtlc, feeRate, in.Private, remoteCsvDelay,
|
||||||
)
|
)
|
||||||
|
|
||||||
var outpoint wire.OutPoint
|
var outpoint wire.OutPoint
|
||||||
|
@ -880,6 +881,7 @@ func (r *rpcServer) OpenChannelSync(ctx context.Context,
|
||||||
localFundingAmt := btcutil.Amount(in.LocalFundingAmount)
|
localFundingAmt := btcutil.Amount(in.LocalFundingAmount)
|
||||||
remoteInitialBalance := btcutil.Amount(in.PushSat)
|
remoteInitialBalance := btcutil.Amount(in.PushSat)
|
||||||
minHtlc := lnwire.MilliSatoshi(in.MinHtlcMsat)
|
minHtlc := lnwire.MilliSatoshi(in.MinHtlcMsat)
|
||||||
|
remoteCsvDelay := uint16(in.RemoteCsvDelay)
|
||||||
|
|
||||||
// Ensure that the initial balance of the remote party (if pushing
|
// Ensure that the initial balance of the remote party (if pushing
|
||||||
// satoshis) does not exceed the amount the local party has requested
|
// 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(
|
updateChan, errChan := r.server.OpenChannel(
|
||||||
nodepubKey, localFundingAmt,
|
nodepubKey, localFundingAmt,
|
||||||
lnwire.NewMSatFromSatoshis(remoteInitialBalance),
|
lnwire.NewMSatFromSatoshis(remoteInitialBalance),
|
||||||
minHtlc, feeRate, in.Private,
|
minHtlc, feeRate, in.Private, remoteCsvDelay,
|
||||||
)
|
)
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
|
Loading…
Add table
Reference in a new issue