Merge pull request #218 from ethcore/failing_test

fixed failing sync test
This commit is contained in:
Arkadiy Paronyan 2016-01-26 11:46:56 +01:00
commit 9e8ad1a8bd

View File

@ -9,13 +9,13 @@
/// extern crate ethcore; /// extern crate ethcore;
/// use std::env; /// use std::env;
/// use std::sync::Arc; /// use std::sync::Arc;
/// use util::network::NetworkService; /// use util::network::{NetworkService, NetworkConfiguration};
/// use ethcore::client::Client; /// use ethcore::client::Client;
/// use ethcore::sync::EthSync; /// use ethcore::sync::EthSync;
/// use ethcore::ethereum; /// use ethcore::ethereum;
/// ///
/// fn main() { /// fn main() {
/// let mut service = NetworkService::start().unwrap(); /// let mut service = NetworkService::start(NetworkConfiguration::new()).unwrap();
/// let dir = env::temp_dir(); /// let dir = env::temp_dir();
/// let client = Client::new(ethereum::new_frontier(), &dir, service.io().channel()).unwrap(); /// let client = Client::new(ethereum::new_frontier(), &dir, service.io().channel()).unwrap();
/// EthSync::register(&mut service, client); /// EthSync::register(&mut service, client);