Browse Source

Add notice for when network diff is changed.

Luke Dashjr 12 years ago
parent
commit
7be07eec6d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -4566,6 +4566,8 @@ static void set_blockdiff(const struct work *work)
 
 	suffix_string(diff64, block_diff, 0);
 	hashrate_to_bufstr(net_hashrate, diff * 7158278, -1, H2B_SHORT);
+	if (unlikely(current_diff != diff))
+		applog(LOG_NOTICE, "Network difficulty changed to %s (%s)", block_diff, net_hashrate);
 	current_diff = diff;
 }