mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 12:53:35 +02:00
funding: add all parameters to batch open channel
This commit is contained in:
@@ -230,19 +230,31 @@ func (b *Batcher) BatchFund(ctx context.Context,
|
|||||||
err)
|
err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:lll
|
||||||
fundingReq, err := b.cfg.RequestParser(&lnrpc.OpenChannelRequest{
|
fundingReq, err := b.cfg.RequestParser(&lnrpc.OpenChannelRequest{
|
||||||
SatPerVbyte: uint64(req.SatPerVbyte),
|
SatPerVbyte: uint64(req.SatPerVbyte),
|
||||||
|
TargetConf: req.TargetConf,
|
||||||
|
MinConfs: req.MinConfs,
|
||||||
|
SpendUnconfirmed: req.SpendUnconfirmed,
|
||||||
NodePubkey: rpcChannel.NodePubkey,
|
NodePubkey: rpcChannel.NodePubkey,
|
||||||
LocalFundingAmount: rpcChannel.LocalFundingAmount,
|
LocalFundingAmount: rpcChannel.LocalFundingAmount,
|
||||||
PushSat: rpcChannel.PushSat,
|
PushSat: rpcChannel.PushSat,
|
||||||
TargetConf: req.TargetConf,
|
|
||||||
Private: rpcChannel.Private,
|
Private: rpcChannel.Private,
|
||||||
MinHtlcMsat: rpcChannel.MinHtlcMsat,
|
MinHtlcMsat: rpcChannel.MinHtlcMsat,
|
||||||
RemoteCsvDelay: rpcChannel.RemoteCsvDelay,
|
RemoteCsvDelay: rpcChannel.RemoteCsvDelay,
|
||||||
MinConfs: req.MinConfs,
|
|
||||||
SpendUnconfirmed: req.SpendUnconfirmed,
|
|
||||||
CloseAddress: rpcChannel.CloseAddress,
|
CloseAddress: rpcChannel.CloseAddress,
|
||||||
|
RemoteMaxValueInFlightMsat: rpcChannel.RemoteMaxValueInFlightMsat,
|
||||||
|
RemoteMaxHtlcs: rpcChannel.RemoteMaxHtlcs,
|
||||||
|
MaxLocalCsv: rpcChannel.MaxLocalCsv,
|
||||||
CommitmentType: rpcChannel.CommitmentType,
|
CommitmentType: rpcChannel.CommitmentType,
|
||||||
|
ZeroConf: rpcChannel.ZeroConf,
|
||||||
|
ScidAlias: rpcChannel.ScidAlias,
|
||||||
|
BaseFee: rpcChannel.BaseFee,
|
||||||
|
FeeRate: rpcChannel.FeeRate,
|
||||||
|
UseBaseFee: rpcChannel.UseBaseFee,
|
||||||
|
UseFeeRate: rpcChannel.UseFeeRate,
|
||||||
|
RemoteChanReserveSat: rpcChannel.RemoteChanReserveSat,
|
||||||
|
Memo: rpcChannel.Memo,
|
||||||
FundingShim: &lnrpc.FundingShim{
|
FundingShim: &lnrpc.FundingShim{
|
||||||
Shim: &lnrpc.FundingShim_PsbtShim{
|
Shim: &lnrpc.FundingShim_PsbtShim{
|
||||||
PsbtShim: &lnrpc.PsbtShim{
|
PsbtShim: &lnrpc.PsbtShim{
|
||||||
|
Reference in New Issue
Block a user