mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
fix for missing increment of stratum stats blocks_found (#3593)
This commit is contained in:
parent
0259ed23ea
commit
846b8f82e8
1 changed files with 1 additions and 0 deletions
|
@ -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!(
|
||||||
|
|
Loading…
Reference in a new issue