rename to engine_signer
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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(())
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user