BitMaker.Miner.Gpu.GpuMiner.Progress C# (CSharp) Method

Progress() private method

Reports progress and checks for whether we should terminate the current work item.
private Progress ( Work work, long hashes ) : bool
work Work
hashes long
return bool
        bool Progress(Work work, long hashes)
        {
            // report hashes to context
            Context.ReportHashes(this, hashes);

            // abort if we are working on stale work, or if instructed to
            return
                work.Pool.CurrentBlockNumber == work.BlockNumber &&
                !CancellationToken.IsCancellationRequested;
        }