rename rpc to match cli

This commit is contained in:
keorn 2016-12-05 19:27:24 +00:00
parent 5e7c21ad4a
commit 46dd2543e5
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ fn rpc_parity_set_consensus_signer() {
let io = IoHandler::new();
io.add_delegate(parity_set_client(&client, &miner, &network).to_delegate());
let request = r#"{"jsonrpc": "2.0", "method": "parity_setConsensusSigner", "params":["0xcd1722f3947def4cf144679da39c4c32bdc35681", "password"], "id": 1}"#;
let request = r#"{"jsonrpc": "2.0", "method": "parity_setEngineSigner", "params":["0xcd1722f3947def4cf144679da39c4c32bdc35681", "password"], "id": 1}"#;
let response = r#"{"jsonrpc":"2.0","result":true,"id":1}"#;
assert_eq!(io.handle_request_sync(request), Some(response.to_owned()));

View File

@ -45,7 +45,7 @@ build_rpc_trait! {
fn set_author(&self, H160) -> Result<bool, Error>;
/// Sets account for signing consensus messages.
#[rpc(name = "parity_setConsensusSigner")]
#[rpc(name = "parity_setEngineSigner")]
fn set_consensus_signer(&self, H160, String) -> Result<bool, Error>;
/// Sets the limits for transaction queue.