Merge branch 'master' into light-poa
This commit is contained in:
@@ -26,7 +26,8 @@ use ethcore::receipt::Receipt;
|
||||
|
||||
use stats::Corpus;
|
||||
use time::{SteadyTime, Duration};
|
||||
use util::{U256, H256, HeapSizeOf};
|
||||
use heapsize::HeapSizeOf;
|
||||
use util::{U256, H256};
|
||||
use util::cache::MemoryLruCache;
|
||||
|
||||
/// Configuration for how much data to cache.
|
||||
|
||||
@@ -42,7 +42,8 @@ use ethcore::engines::epoch::{
|
||||
};
|
||||
|
||||
use rlp::{Encodable, Decodable, DecoderError, RlpStream, Rlp, UntrustedRlp};
|
||||
use util::{H256, H256FastMap, H264, U256, HeapSizeOf, RwLock};
|
||||
use heapsize::HeapSizeOf;
|
||||
use util::{H256, H256FastMap, H264, U256, RwLock};
|
||||
use util::kvdb::{DBTransaction, KeyValueDB};
|
||||
|
||||
use cache::Cache;
|
||||
|
||||
@@ -374,7 +374,7 @@ impl<T: ChainDataFetcher> Client<T> {
|
||||
|
||||
/// Get blockchain mem usage in bytes.
|
||||
pub fn chain_mem_used(&self) -> usize {
|
||||
use util::HeapSizeOf;
|
||||
use heapsize::HeapSizeOf;
|
||||
|
||||
self.chain.heap_size_of_children()
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@ extern crate ethcore_network as network;
|
||||
extern crate ethcore_util as util;
|
||||
extern crate ethcore;
|
||||
extern crate evm;
|
||||
extern crate heapsize;
|
||||
extern crate futures;
|
||||
extern crate itertools;
|
||||
extern crate rand;
|
||||
|
||||
Reference in New Issue
Block a user