Full native build with new structure.

No tests yet.
Wasm build still pulls in std.
This commit is contained in:
Gav
2018-02-07 15:54:18 +01:00
parent 9fe85fc9f4
commit dcff8f1a2f
33 changed files with 56 additions and 74 deletions
+2 -3
View File
@@ -20,7 +20,7 @@ use std::ops::Range;
use std::collections::{HashMap, BTreeMap};
use std::collections::hash_map::Entry;
use network::PeerId;
use primitives::relay::BlockNumber;
use primitives::block::Number as BlockNumber;
use message;
const MAX_PARALLEL_DOWNLOADS: u32 = 1;
@@ -190,7 +190,7 @@ impl BlockCollection {
mod test {
use super::{BlockCollection, BlockData};
use message;
use primitives::relay::{HeaderHash};
use primitives::HeaderHash;
fn is_empty(bc: &BlockCollection) -> bool {
bc.blocks.is_empty() &&
@@ -260,4 +260,3 @@ mod test {
assert_eq!(drained[40..], blocks[121..150].iter().map(|b| BlockData { block: b.clone(), origin: 1 }).collect::<Vec<_>>()[..]);
}
}