Merge branch 'master' of github.com:ethcore/parity into discovery

This commit is contained in:
arkpar
2016-02-19 13:44:57 +01:00
25 changed files with 527 additions and 83 deletions

View File

@@ -241,7 +241,7 @@ impl Discovery {
self.send_to(packet, address.clone());
}
#[allow(map_clone)]
#[cfg_attr(feature="dev", allow(map_clone))]
fn nearest_node_entries(target: &NodeId, buckets: &[NodeBucket]) -> Vec<NodeEntry> {
let mut found: BTreeMap<u32, Vec<&NodeEntry>> = BTreeMap::new();
let mut count = 0;