spaces fix

This commit is contained in:
Nikolay Volf 2016-01-27 19:07:35 +04:00
parent f1edf627ae
commit 0312c08494
2 changed files with 0 additions and 7 deletions

View File

@ -292,7 +292,6 @@ impl Client {
pub fn tick(&self) { pub fn tick(&self) {
self.chain.read().unwrap().collect_garbage(false); self.chain.read().unwrap().collect_garbage(false);
} }
} }
impl BlockChainClient for Client { impl BlockChainClient for Client {

View File

@ -32,12 +32,10 @@ impl Drop for RandomTempPath {
} }
} }
pub fn get_test_spec() -> Spec { pub fn get_test_spec() -> Spec {
Spec::new_test() Spec::new_test()
} }
pub fn create_test_block(header: &Header) -> Bytes { pub fn create_test_block(header: &Header) -> Bytes {
let mut rlp = RlpStream::new_list(3); let mut rlp = RlpStream::new_list(3);
rlp.append(header); rlp.append(header);
@ -50,7 +48,6 @@ pub fn generate_dummy_client(block_number: usize) -> Arc<Client> {
let dir = RandomTempPath::new(); let dir = RandomTempPath::new();
let client = Client::new(get_test_spec(), dir.as_path(), IoChannel::disconnected()).unwrap(); let client = Client::new(get_test_spec(), dir.as_path(), IoChannel::disconnected()).unwrap();
let test_spec = get_test_spec(); let test_spec = get_test_spec();
let test_engine = test_spec.to_engine().unwrap(); let test_engine = test_spec.to_engine().unwrap();
let state_root = test_engine.spec().genesis_header().state_root; let state_root = test_engine.spec().genesis_header().state_root;
@ -77,10 +74,7 @@ pub fn generate_dummy_client(block_number: usize) -> Arc<Client> {
} }
} }
client.flush_queue(); client.flush_queue();
client.import_verified_blocks(&IoChannel::disconnected()); client.import_verified_blocks(&IoChannel::disconnected());
client client
} }