fix for missing increment of stratum stats blocks_found (#3593)

This commit is contained in:
Blade Doyle 2021-03-11 07:13:15 -08:00 committed by GitHub
parent 0259ed23ea
commit 846b8f82e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -437,6 +437,7 @@ impl Handler {
share_is_block = true; share_is_block = true;
self.workers self.workers
.update_stats(worker_id, |worker_stats| worker_stats.num_blocks_found += 1); .update_stats(worker_id, |worker_stats| worker_stats.num_blocks_found += 1);
self.workers.stratum_stats.write().blocks_found += 1;
// Log message to make it obvious we found a block // Log message to make it obvious we found a block
let stats = self.workers.get_stats(worker_id)?; let stats = self.workers.get_stats(worker_id)?;
warn!( warn!(