TUI mining server status: add blocks found statistics (#2151)
* TUI mining server status: add solutions found statistics * rustfmt * modify 'solutions found' as 'blocks found'
This commit is contained in:
@@ -512,10 +512,14 @@ impl StratumServer {
|
||||
return Err(serde_json::to_value(e).unwrap());
|
||||
}
|
||||
share_is_block = true;
|
||||
worker_stats.num_blocks_found += 1;
|
||||
// Log message to make it obvious we found a block
|
||||
warn!(
|
||||
"(Server ID: {}) Solution Found for block {} - Yay!!!",
|
||||
self.id, params.height
|
||||
"(Server ID: {}) Solution Found for block {} - Yay!!! Worker ID: {}, blocks found: {}, shares: {}",
|
||||
self.id, params.height,
|
||||
worker_stats.id,
|
||||
worker_stats.num_blocks_found,
|
||||
worker_stats.num_accepted,
|
||||
);
|
||||
} else {
|
||||
// Do some validation but dont submit
|
||||
|
||||
Reference in New Issue
Block a user