File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,17 @@ impl Miner {
42
42
let proof =
43
43
get_updated_proof_with_authority ( & self . rpc_client , signer. pubkey ( ) , last_hash_at)
44
44
. await ;
45
- last_hash_at = proof. last_hash_at ;
46
45
println ! (
47
- "\n Stake: {} ORE\n Change: {} ORE \n Multiplier: {:12}x" ,
46
+ "\n Stake: {} ORE\n {} Multiplier: {:12}x" ,
48
47
amount_u64_to_string( proof. balance) ,
49
- amount_u64_to_string( proof. balance. saturating_sub( last_balance) ) ,
48
+ if last_hash_at. gt( & 0 ) {
49
+ format!( " Change: {} ORE\n " , amount_u64_to_string( proof. balance. saturating_sub( last_balance) ) )
50
+ } else {
51
+ ""
52
+ } ,
50
53
calculate_multiplier( proof. balance, config. top_balance)
51
54
) ;
55
+ last_hash_at = proof. last_hash_at ;
52
56
last_balance = proof. balance ;
53
57
54
58
// Calculate cutoff time
You can’t perform that action at this time.
0 commit comments