invoice watcher can watch several currencies

This commit is contained in:
nicolas.dorier
2018-01-07 02:16:42 +09:00
parent 781b2885cc
commit 63fceed5f4
4 changed files with 122 additions and 56 deletions

View File

@@ -17,6 +17,7 @@ using NBXplorer;
using NBXplorer.Models;
using System.Linq;
using System.Threading;
using BTCPayServer.Services.Wallets;
namespace BTCPayServer
{
@@ -27,7 +28,7 @@ namespace BTCPayServer
return activeProvider != "Microsoft.EntityFrameworkCore.Sqlite";
}
public static async Task<Dictionary<uint256, TransactionResult>> GetTransactions(this ExplorerClient client, uint256[] hashes, CancellationToken cts = default(CancellationToken))
public static async Task<Dictionary<uint256, TransactionResult>> GetTransactions(this BTCPayWallet client, uint256[] hashes, CancellationToken cts = default(CancellationToken))
{
hashes = hashes.Distinct().ToArray();
var transactions = hashes