Fix rpc response message id (#1177)

This commit is contained in:
Blade Doyle 2018-06-19 09:24:35 -07:00 committed by Ignotus Peverell
parent 028b14d9d9
commit 0e969849c4

View file

@ -352,7 +352,7 @@ impl StratumServer {
let rpc_response: String;
if err == true {
let resp = RpcResponse {
id: workers_l[num].id.clone(),
id: request.id,
jsonrpc: String::from("2.0"),
method: request.method,
result: None,
@ -361,7 +361,7 @@ impl StratumServer {
rpc_response = serde_json::to_string(&resp).unwrap();
} else {
let resp = RpcResponse {
id: workers_l[num].id.clone(),
id: request.id,
jsonrpc: String::from("2.0"),
method: request.method,
result: Some(response),