Exemplo n.º 1
0
        public async static void Execute(WalletUtils walletUtils)
        {
            //   Console.WriteLine("SendCoinJob.Execute");
            foreach (Recipient recp in Throttling.Transactions.Values)
            {
                // Console.WriteLine("Sending Transaction {0}  ",  recp.address);
                if (!recp.is_sent && !recp.is_error)
                {
                    try
                    {
                        await walletUtils.SendCoin(recp);
                    }
                    catch (FaucetException e)
                    {
                        Console.WriteLine(e.Message);
                    }
                }
            }

            Throttling.Manage();
        }