mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
lnwallet: adds selected Outpoints for funding
This commit is contained in:
parent
50acd49283
commit
d327c92188
1 changed files with 8 additions and 0 deletions
|
@ -131,6 +131,13 @@ type InitFundingReserveMsg struct {
|
||||||
// allocated iff the FundUpToMaxAmt is set.
|
// allocated iff the FundUpToMaxAmt is set.
|
||||||
MinFundAmt btcutil.Amount
|
MinFundAmt btcutil.Amount
|
||||||
|
|
||||||
|
// Outpoints is a list of client-selected outpoints that should be used
|
||||||
|
// for funding a channel. If LocalFundingAmt is specified then this
|
||||||
|
// amount is allocated from the sum of outpoints towards funding. If the
|
||||||
|
// FundUpToMaxAmt is specified the entirety of selected funds is
|
||||||
|
// allocated towards channel funding.
|
||||||
|
Outpoints []wire.OutPoint
|
||||||
|
|
||||||
// RemoteChanReserve is the channel reserve we required for the remote
|
// RemoteChanReserve is the channel reserve we required for the remote
|
||||||
// peer.
|
// peer.
|
||||||
RemoteChanReserve btcutil.Amount
|
RemoteChanReserve btcutil.Amount
|
||||||
|
@ -899,6 +906,7 @@ func (l *LightningWallet) handleFundingReserveRequest(req *InitFundingReserveMsg
|
||||||
WalletReserve: l.RequiredReserve(
|
WalletReserve: l.RequiredReserve(
|
||||||
uint32(numAnchorChans),
|
uint32(numAnchorChans),
|
||||||
),
|
),
|
||||||
|
Outpoints: req.Outpoints,
|
||||||
MinConfs: req.MinConfs,
|
MinConfs: req.MinConfs,
|
||||||
SubtractFees: req.SubtractFees,
|
SubtractFees: req.SubtractFees,
|
||||||
FeeRate: req.FundingFeePerKw,
|
FeeRate: req.FundingFeePerKw,
|
||||||
|
|
Loading…
Add table
Reference in a new issue