Mining tui updates (#3584)

* add column ordering, set mining workers table to sort the connected workers to the top by default

* add column ordering, set mining workers table to sort the connected workers to the top by default

* Mining TUI fixes and updates
This commit is contained in:
Blade Doyle
2021-03-04 06:39:14 -08:00
committed by GitHub
parent 64b2fddbf1
commit 059e6ad545
3 changed files with 55 additions and 63 deletions
+2 -1
View File
@@ -714,7 +714,7 @@ impl WorkersList {
let mut worker_stats = WorkerStats::default();
worker_stats.is_connected = true;
worker_stats.id = worker_id.to_string();
worker_stats.pow_difficulty = 1; // XXX TODO
worker_stats.pow_difficulty = stratum_stats.minimum_share_difficulty;
stratum_stats.worker_stats.push(worker_stats);
stratum_stats.num_workers = workers_list.len();
worker_id
@@ -885,6 +885,7 @@ impl StratumServer {
let mut stratum_stats = self.stratum_stats.write();
stratum_stats.is_running = true;
stratum_stats.edge_bits = (global::min_edge_bits() + 1) as u16;
stratum_stats.minimum_share_difficulty = self.config.minimum_share_difficulty;
}
warn!(