Ejemplo n.º 1
0
        void MiddlewareServer_onMiningStatsUpdate(
            MiningStats stats)
        {
            Debug.Assert(stats != null);

            this.hashRate = stats.hashRate;
        }
Ejemplo n.º 2
0
        void MiddlewareServer_onMiningStatsUpdate(
            MiningStats stats)
        {
            Debug.Assert(stats != null);

            OnPropertyChanged(nameof(currentMiningPerformance));
            OnPropertyChanged(nameof(currentMiningPerformanceString));
        }
Ejemplo n.º 3
0
        void MiddlewareServer_onMiningStatsUpdate(
            MiningStats stats)
        {
            Debug.Assert(stats != null);

            if (Miner.instance.currentWinner == this)
            {
                this.localHashRate = new decimal(stats.hashRate);
            }
            else
            {
                this.localHashRate = 0;
            }
        }