Exemple #1
0
 private List <TransactionData> GetTransactions(Currency currency, int timeout)
 {
     try
     {
         var connector = new WalletConnector(currency.WalletHost, currency.WalletPort, currency.WalletUser, currency.WalletPass, timeout);
         var deposits  = new List <TransactionData>(connector.GetDeposits(currency.LastBlockHash));
         return(deposits.Where(x => x.Amount > 0).ToList());
     }
     catch (Exception)
     {
         Log.Message(LogLevel.Debug, "[GetTransactions] - Timeout: {0}ms", timeout);
         return(null);
     }
 }