new highway to miner, set_author

This commit is contained in:
keorn 2016-09-14 17:30:09 +02:00
parent d3ec8588c4
commit 44fe864826
1 changed files with 5 additions and 0 deletions

View File

@ -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<TransactionImportResult, EthcoreError> {
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.
///