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;
}