Beispiel #1
0
        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);
        }
Beispiel #2
0
 public async Task AddTransactionsAsync(IEnumerable <Transaction> transactions)
 {
     await _transactionManager.AddTransactionsAsync(transactions.ToList());
 }