add client own_tx import through client
This commit is contained in:
parent
bedbe6e65e
commit
28a088eea7
@ -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<TransactionImportResult, EthcoreError> {
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user