mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Fix rpc response message id (#1177)
This commit is contained in:
parent
028b14d9d9
commit
0e969849c4
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue