Exemple #1
0
        public void TestCompareHashRateFromZergPool()
        {
            ZergAPI        api        = new ZergAPI();
            CryptoCurrency currencies = api.LoadCurrency();

            CryptoCurrency.GIN  ginCoin  = currencies.Gin;
            CryptoCurrency.MANO manoCoin = currencies.Mano;
            Assert.AreNotEqual(manoCoin.hashrate, ginCoin.hashrate);
        }
Exemple #2
0
        public void TestGetMiningManoCoinFromGosPerday()
        {
            long           myHashRate = 120000000L;
            GosAPI         api        = new GosAPI();
            CryptoCurrency currencies = api.LoadCurrency();

            CryptoCurrency.MANO manoCoin = currencies.Mano;
            double rewardPerBlock        = double.Parse(manoCoin.reward);
            int    blockAllDay           = manoCoin.h24_blocks;
            long   poolHashRate          = manoCoin.hashrate ?? 0;

            if (manoCoin.hashrate_shared != null && manoCoin.hashrate_shared != 0)
            {
                poolHashRate = manoCoin.hashrate_shared ?? 0;
            }
            double receiveCoinPerDay = (rewardPerBlock / (double)poolHashRate) * myHashRate * blockAllDay;

            Assert.AreEqual(true, receiveCoinPerDay > 0);
        }