fix 2 minor build warning (#2260)

This commit is contained in:
Gary Yu
2018-12-30 20:03:36 +08:00
committed by GitHub
parent 5e86cc8bb2
commit dbf8e97b3f
2 changed files with 3 additions and 4 deletions
+3 -2
View File
@@ -246,7 +246,7 @@ impl StratumServer {
verifier_cache: Arc<RwLock<dyn VerifierCache>>,
) -> StratumServer {
StratumServer {
id: String::from("StratumServer"),
id: String::from("0"),
minimum_share_difficulty: config.minimum_share_difficulty,
config,
chain,
@@ -535,8 +535,9 @@ impl StratumServer {
worker_stats.num_blocks_found += 1;
// Log message to make it obvious we found a block
warn!(
"(Server ID: {}) Solution Found for block {} - Yay!!! Worker ID: {}, blocks found: {}, shares: {}",
"(Server ID: {}) Solution Found for block {}, hash {} - Yay!!! Worker ID: {}, blocks found: {}, shares: {}",
self.id, params.height,
b.hash(),
worker_stats.id,
worker_stats.num_blocks_found,
worker_stats.num_accepted,