示例#1
0
        void MiddlewareServer_onMiningStatsUpdate(
            MiningStats stats)
        {
            Debug.Assert(stats != null);

            this.hashRate = stats.hashRate;
        }
示例#2
0
        void MiddlewareServer_onMiningStatsUpdate(
            MiningStats stats)
        {
            Debug.Assert(stats != null);

            OnPropertyChanged(nameof(currentMiningPerformance));
            OnPropertyChanged(nameof(currentMiningPerformanceString));
        }
示例#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;
            }
        }