Change error 32701 to 32000 (#1282)

This commit is contained in:
Quentin Le Sceller 2018-07-21 02:03:28 -04:00 committed by Ignotus Peverell
parent a1bd593800
commit bac6e813bb

View file

@ -328,7 +328,7 @@ impl StratumServer {
"getjobtemplate" => {
if self.sync_state.is_syncing() {
let e = RpcError {
code: -32701,
code: -32000,
message: "Node is syncing - Please wait".to_string(),
};
Err(serde_json::to_value(e).unwrap())