util reexports less std
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
/// Blockchain downloader
|
||||
///
|
||||
|
||||
use std::collections::{HashSet, VecDeque};
|
||||
use std::cmp;
|
||||
use util::*;
|
||||
use rlp::*;
|
||||
use ethcore::views::{BlockView};
|
||||
@@ -386,7 +388,7 @@ impl BlockDownloader {
|
||||
debug!(target: "sync", "Could not revert to previous ancient block, last: {} ({})", start, start_hash);
|
||||
self.reset();
|
||||
} else {
|
||||
let n = start - min(self.retract_step, start);
|
||||
let n = start - cmp::min(self.retract_step, start);
|
||||
self.retract_step *= 2;
|
||||
match io.chain().block_hash(BlockId::Number(n)) {
|
||||
Some(h) => {
|
||||
|
||||
Reference in New Issue
Block a user