public async Task AddTransactionsAsync(IEnumerable <Transaction> transactions) { var txs = transactions.ToList(); foreach (var transaction in txs) { if (_allTransactions.ContainsKey(transaction.GetHash())) { continue; } _allTransactions.Add(transaction.GetHash(), transaction); } await _transactionManager.AddTransactionsAsync(txs); }
public async Task AddTransactionsAsync(IEnumerable <Transaction> transactions) { await _transactionManager.AddTransactionsAsync(transactions.ToList()); }