multi: add random coin selection

This commit is contained in:
Joost Jager committed 2021-05-24 20:09:56 +02:00
1 parent 4f98cea820
commit 42f4afef75
10 files changed
+63 -22

No files matched your search

+3 -1
View File
@@ -250,7 +250,9 @@ func (w *WalletAssembler) ProvisionChannel(r *Request) (Intent, error) {
"sat/kw as fee rate", int64(r.FeeRate))
// Find all unlocked unspent witness outputs that satisfy the
// minimum number of confirmations required.
// minimum number of confirmations required. Coin selection in
// this function currently ignores the configured coin selection
// strategy.
coins, err := w.cfg.CoinSource.ListCoins(
r.MinConfs, math.MaxInt32,
)