From 28a088eea747cc0e1ca6ac14345acdd9fb328702 Mon Sep 17 00:00:00 2001 From: keorn Date: Wed, 14 Sep 2016 11:22:43 +0200 Subject: [PATCH] add client own_tx import through client --- ethcore/src/client/client.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ethcore/src/client/client.rs b/ethcore/src/client/client.rs index b6333902b..02dce97df 100644 --- a/ethcore/src/client/client.rs +++ b/ethcore/src/client/client.rs @@ -52,7 +52,7 @@ use blockchain::{BlockChain, BlockProvider, TreeRoute, ImportRoute}; use client::{ BlockID, TransactionID, UncleID, TraceId, ClientConfig, BlockChainClient, MiningBlockChainClient, TraceFilter, CallAnalytics, BlockImportError, Mode, - ChainNotify + ChainNotify, TransactionImportResult }; use client::Error as ClientError; use env_info::EnvInfo; @@ -477,6 +477,11 @@ impl Client { results.len() } + /// Import a locally created transaction. + pub fn import_own_transaction(&self, transaction: SignedTransaction) -> Result { + self.miner.import_own_transaction(self, transaction) + } + /// Attempt to get a copy of a specific block's final state. /// /// This will not fail if given BlockID::Latest.