From 44fe864826a84d73613473b0985b7aab37d1f591 Mon Sep 17 00:00:00 2001 From: keorn Date: Wed, 14 Sep 2016 17:30:09 +0200 Subject: [PATCH] new highway to miner, set_author --- ethcore/src/client/client.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ethcore/src/client/client.rs b/ethcore/src/client/client.rs index 02dce97df..24f93ce90 100644 --- a/ethcore/src/client/client.rs +++ b/ethcore/src/client/client.rs @@ -477,10 +477,15 @@ impl Client { results.len() } + // TODO: these are only used for tests in sync and only contribute to huge Client /// Import a locally created transaction. pub fn import_own_transaction(&self, transaction: SignedTransaction) -> Result { self.miner.import_own_transaction(self, transaction) } + /// Set miner author. + pub fn set_author(&self, author: Address) { + self.miner.set_author(author) + } /// Attempt to get a copy of a specific block's final state. ///