lnwallet: expose optional account filter for several WalletController methods

This commit is contained in:
Wilmer Paulino
2021-02-19 17:41:50 -08:00
parent f38bf4d7fa
commit f91e7cde59
14 changed files with 138 additions and 76 deletions

View File

@@ -333,7 +333,9 @@ func (t *txInputSet) tryAddWalletInputsIfNeeded() error {
// Retrieve wallet utxos. Only consider confirmed utxos to prevent
// problems around RBF rules for unconfirmed inputs.
utxos, err := t.wallet.ListUnspentWitness(1, math.MaxInt32)
utxos, err := t.wallet.ListUnspentWitnessFromDefaultAccount(
1, math.MaxInt32,
)
if err != nil {
return err
}