combine relay chain primitives into one module

This commit is contained in:
Robert Habermeier
2018-02-06 18:30:21 +01:00
parent 6672cf5196
commit 8bae8510f6
28 changed files with 47 additions and 47 deletions
+2 -2
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::block::{Number as BlockNumber};
use primitives::relay::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::block::{HeaderHash};
use primitives::relay::{HeaderHash};
fn is_empty(bc: &BlockCollection) -> bool {
bc.blocks.is_empty() &&