ethcore compilation
This commit is contained in:
parent
b58754cd26
commit
a9a671dfc0
@ -62,23 +62,24 @@ use block_queue::{BlockQueue, BlockQueueInfo};
|
|||||||
use blockchain::{BlockChain, BlockProvider, TreeRoute, ImportRoute};
|
use blockchain::{BlockChain, BlockProvider, TreeRoute, ImportRoute};
|
||||||
use client::{BlockID, TransactionID, UncleID, TraceId, ClientConfig,
|
use client::{BlockID, TransactionID, UncleID, TraceId, ClientConfig,
|
||||||
DatabaseCompactionProfile, BlockChainClient, MiningBlockChainClient,
|
DatabaseCompactionProfile, BlockChainClient, MiningBlockChainClient,
|
||||||
TraceFilter, CallAnalytics, BlockImportError};
|
TraceFilter, CallAnalytics, BlockImportError, TransactionImportError, TransactionImportResult};
|
||||||
use client::Error as ClientError;
|
use client::Error as ClientError;
|
||||||
use env_info::EnvInfo;
|
use env_info::EnvInfo;
|
||||||
use executive::{Executive, Executed, TransactOptions, contract_address};
|
use executive::{Executive, Executed, TransactOptions, contract_address};
|
||||||
use receipt::LocalizedReceipt;
|
use receipt::LocalizedReceipt;
|
||||||
pub use blockchain::CacheSize as BlockChainCacheSize;
|
|
||||||
use trace::{TraceDB, ImportRequest as TraceImportRequest, LocalizedTrace, Database as TraceDatabase};
|
use trace::{TraceDB, ImportRequest as TraceImportRequest, LocalizedTrace, Database as TraceDatabase};
|
||||||
use trace;
|
use trace;
|
||||||
pub use types::blockchain_info::BlockChainInfo;
|
|
||||||
pub use types::block_status::BlockStatus;
|
|
||||||
use evm::Factory as EvmFactory;
|
use evm::Factory as EvmFactory;
|
||||||
use miner::{Miner, MinerService, TransactionImportResult, AccountDetails};
|
use miner::{Miner, MinerService, AccountDetails};
|
||||||
use basic_types::*;
|
use util::TrieFactory;
|
||||||
|
|
||||||
use ipc::IpcConfig;
|
use ipc::IpcConfig;
|
||||||
use ipc::binary::{BinaryConvertable, BinaryConvertError};
|
use ipc::binary::{BinaryConvertable, BinaryConvertError};
|
||||||
|
|
||||||
|
// re-export
|
||||||
|
pub use types::blockchain_info::BlockChainInfo;
|
||||||
|
pub use types::block_status::BlockStatus;
|
||||||
|
pub use blockchain::CacheSize as BlockChainCacheSize;
|
||||||
|
|
||||||
const MAX_TX_QUEUE_SIZE: usize = 4096;
|
const MAX_TX_QUEUE_SIZE: usize = 4096;
|
||||||
|
|
||||||
impl fmt::Display for BlockChainInfo {
|
impl fmt::Display for BlockChainInfo {
|
||||||
|
@ -459,8 +459,7 @@ impl BlockChainClient for TestBlockChainClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn clear_queue(&self) -> bool {
|
fn clear_queue(&self) {
|
||||||
true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn chain_info(&self) -> BlockChainInfo {
|
fn chain_info(&self) -> BlockChainInfo {
|
||||||
@ -503,11 +502,10 @@ impl BlockChainClient for TestBlockChainClient {
|
|||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn queue_transactions(&self, transactions: Vec<Bytes>) -> bool {
|
fn queue_transactions(&self, transactions: Vec<Bytes>) {
|
||||||
// import right here
|
// import right here
|
||||||
let tx = transactions.into_iter().filter_map(|bytes| UntrustedRlp::new(&bytes).as_val().ok()).collect();
|
let tx = transactions.into_iter().filter_map(|bytes| UntrustedRlp::new(&bytes).as_val().ok()).collect();
|
||||||
self.import_transactions(tx);
|
self.import_transactions(tx);
|
||||||
true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn pending_transactions(&self) -> Vec<SignedTransaction> {
|
fn pending_transactions(&self) -> Vec<SignedTransaction> {
|
||||||
|
Loading…
Reference in New Issue
Block a user