From 2ca69498dee0c3f7c9cf8525765d301d14d21b58 Mon Sep 17 00:00:00 2001 From: Blade Doyle Date: Wed, 19 Dec 2018 23:32:01 +0000 Subject: [PATCH] Fix duplicate nonce in message, run rustfmt (#2187) --- servers/src/mining/stratumserver.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/servers/src/mining/stratumserver.rs b/servers/src/mining/stratumserver.rs index b926121d7..c8bf2a8c9 100644 --- a/servers/src/mining/stratumserver.rs +++ b/servers/src/mining/stratumserver.rs @@ -13,9 +13,9 @@ // limitations under the License. //! Mining Stratum Server -use crate::util::{Mutex, RwLock}; use bufstream::BufStream; use chrono::prelude::Utc; +use crate::util::{Mutex, RwLock}; use serde; use serde_json; use serde_json::Value; @@ -530,10 +530,9 @@ impl StratumServer { if !pow::verify_size(&b.header).is_ok() { // Return error status error!( - "(Server ID: {}) Failed to validate share at height {}, nonce {}, hash {}, with {} edge_bits with nonce {} using job_id {}", + "(Server ID: {}) Failed to validate share at height {}, hash {}, with {} edge_bits with nonce {} using job_id {}", self.id, params.height, - params.nonce, b.hash(), params.edge_bits, b.header.pow.nonce,