rename set_sealer

This commit is contained in:
keorn
2016-12-05 16:28:56 +00:00
parent db59bd8731
commit 4f857642b5
6 changed files with 9 additions and 9 deletions

View File

@@ -737,7 +737,7 @@ impl MinerService for Miner {
*self.author.write() = author;
}
fn set_signer(&self, address: Address, password: String) -> Result<(), AccountError> {
fn set_consensus_signer(&self, address: Address, password: String) -> Result<(), AccountError> {
if self.seals_internally {
if let Some(ref ap) = self.accounts {
try!(ap.sign(address.clone(), Some(password.clone()), Default::default()));

View File

@@ -77,7 +77,7 @@ pub trait MinerService : Send + Sync {
fn set_author(&self, author: Address);
/// Set info necessary to sign consensus messages.
fn set_signer(&self, address: Address, password: String) -> Result<(), ::account_provider::Error>;
fn set_consensus_signer(&self, address: Address, password: String) -> Result<(), ::account_provider::Error>;
/// Get the extra_data that we will seal blocks with.
fn extra_data(&self) -> Bytes;