mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 07:35:07 +02:00
lnrpc+lnd+config: add coin selection strategy to all on-chain rpcs
In this commit, we add the coin selection strategy option to all on-chain RPCs `FundPsbt`, `BatchOpenChannel`, `EstimateFee`, `SendMany`, `SendCoins`, `SendOutputs`.
This commit is contained in:
@@ -813,6 +813,9 @@ message SendOutputsRequest {
|
||||
|
||||
// Whether unconfirmed outputs should be used as inputs for the transaction.
|
||||
bool spend_unconfirmed = 5;
|
||||
|
||||
// The strategy to use for selecting coins during sending the outputs.
|
||||
lnrpc.CoinSelectionStrategy coin_selection_strategy = 6;
|
||||
}
|
||||
message SendOutputsResponse {
|
||||
/*
|
||||
@@ -1308,6 +1311,9 @@ message FundPsbtRequest {
|
||||
// accounts, no change type should be provided as the coin selection key
|
||||
// scope will always be used to generate the change address.
|
||||
ChangeAddressType change_type = 8;
|
||||
|
||||
// The strategy to use for selecting coins during funding the PSBT.
|
||||
lnrpc.CoinSelectionStrategy coin_selection_strategy = 10;
|
||||
}
|
||||
message FundPsbtResponse {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user