Coin Selection: Confirmed filter (#2467)

Allows provides confirmation count to Greenfield UTXO GET api
This commit is contained in:
Andrew Camilleri
2021-04-20 04:02:06 +02:00
committed by GitHub
parent dfd4c967b7
commit 7d1761de4f
7 changed files with 41 additions and 15 deletions

View File

@@ -576,7 +576,8 @@ namespace BTCPayServer.Controllers
Amount = coin.Value.GetValue(network),
Comment = info?.Comment,
Labels = info == null ? null : _labelFactory.ColorizeTransactionLabels(walletBlobAsync, info, Request),
Link = string.Format(CultureInfo.InvariantCulture, network.BlockExplorerLink, coin.OutPoint.Hash.ToString())
Link = string.Format(CultureInfo.InvariantCulture, network.BlockExplorerLink, coin.OutPoint.Hash.ToString()),
Confirmations = coin.Confirmations
};
}).ToArray();
}