multi: add coin selection strategy option to all on-chain rpcs
In this commit, we add the coin selection strategy option to the following on-chain RPCs `fundpsbt`, `batchopenchannel`, `estimatefee`, `sendcoins`, `sendmany`, and `sendoutputs`.
This commit is contained in:
11 files changed
+107
-40
No files matched your search
+4
-3
@@ -340,9 +340,10 @@ func (b *Batcher) BatchFund(ctx context.Context,
|
||||
Fees: &walletrpc.FundPsbtRequest_SatPerVbyte{
|
||||
SatPerVbyte: uint64(feeRateSatPerVByte),
|
||||
},
|
||||
MinConfs: firstReq.MinConfs,
|
||||
SpendUnconfirmed: firstReq.MinConfs == 0,
|
||||
ChangeType: changeType,
|
||||
MinConfs: firstReq.MinConfs,
|
||||
SpendUnconfirmed: firstReq.MinConfs == 0,
|
||||
ChangeType: changeType,
|
||||
CoinSelectionStrategy: req.CoinSelectionStrategy,
|
||||
}
|
||||
fundPsbtResp, err := b.cfg.WalletKitServer.FundPsbt(ctx, fundPsbtReq)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user