rename to engine_signer

This commit is contained in:
keorn
2016-12-05 21:31:38 +00:00
parent 92d566c900
commit 0a2ec319ac
12 changed files with 19 additions and 19 deletions

View File

@@ -116,9 +116,9 @@ impl<C, M, F> ParitySet for ParitySetClient<C, M, F> where
Ok(true)
}
fn set_consensus_signer(&self, address: H160, password: String) -> Result<bool, Error> {
fn set_engine_signer(&self, address: H160, password: String) -> Result<bool, Error> {
try!(self.active());
try!(take_weak!(self.miner).set_consensus_signer(address.into(), password).map_err(Into::into).map_err(errors::from_password_error));
try!(take_weak!(self.miner).set_engine_signer(address.into(), password).map_err(Into::into).map_err(errors::from_password_error));
Ok(true)
}

View File

@@ -87,7 +87,7 @@ impl MinerService for TestMinerService {
*self.author.write() = author;
}
fn set_consensus_signer(&self, address: Address, password: String) -> Result<(), AccountError> {
fn set_engine_signer(&self, address: Address, password: String) -> Result<(), AccountError> {
*self.author.write() = address;
*self.password.write() = password;
Ok(())

View File

@@ -107,7 +107,7 @@ fn rpc_parity_set_author() {
}
#[test]
fn rpc_parity_set_consensus_signer() {
fn rpc_parity_set_engine_signer() {
let miner = miner_service();
let client = client_service();
let network = network_service();

View File

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