File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -116,13 +116,22 @@ impl Miner {
116
116
if nonce % 100 == 0 {
117
117
let global_best_difficulty = * global_best_difficulty. read ( ) . unwrap ( ) ;
118
118
if timer. elapsed ( ) . as_secs ( ) . ge ( & cutoff_time) {
119
+ if i == 0 {
120
+ progress_bar. set_message ( format ! (
121
+ "Mining... ({} / {} difficulty)" ,
122
+ global_best_difficulty,
123
+ min_difficulty,
124
+ ) ) ;
125
+ }
119
126
if global_best_difficulty. ge ( & min_difficulty) {
120
127
// Mine until min difficulty has been met
121
128
break ;
122
129
}
123
130
} else if i == 0 {
124
131
progress_bar. set_message ( format ! (
125
- "Mining... ({} sec remaining)" ,
132
+ "Mining... ({} / {} difficulty, {} sec remaining)" ,
133
+ global_best_difficulty,
134
+ min_difficulty,
126
135
cutoff_time. saturating_sub( timer. elapsed( ) . as_secs( ) ) ,
127
136
) ) ;
128
137
}
You can’t perform that action at this time.
0 commit comments