Allow excluding unconfirmed UTXOs when creating a new transaction with Greenfield API

See original request: https://github.com/btcpayserver/btcpayserver/discussions/3737
This commit is contained in:
Umar Bolatov
2022-06-09 20:58:51 -07:00
committed by Andrew Camilleri
parent fd3d389557
commit d0e01768ab
6 changed files with 37 additions and 4 deletions

View File

@@ -615,7 +615,7 @@ namespace BTCPayServer.Controllers
var walletTransactionsInfoAsync = await WalletRepository.GetWalletTransactionsInfo(walletId);
var utxos = await _walletProvider.GetWallet(network)
.GetUnspentCoins(schemeSettings.AccountDerivation, cancellation);
.GetUnspentCoins(schemeSettings.AccountDerivation, false, cancellation);
vm.InputsAvailable = utxos.Select(coin =>
{
walletTransactionsInfoAsync.TryGetValue(coin.OutPoint.Hash.ToString(), out var info);