Remove unused imports/ doc comments. (#2276)

* Remove unused imports/ doc comments

* Better doc for node template.
This commit is contained in:
Kian Peymani
2019-04-14 12:42:45 +02:00
committed by Bastian Köcher
parent 29e9273579
commit dcb1cafe2a
7 changed files with 5 additions and 13 deletions
@@ -416,7 +416,6 @@ impl<B: BlockT> ConsensusGossip<B> {
if let Some((topic, keep)) = validation_result {
if let Some(ref mut peer) = self.peers.get_mut(&who) {
use std::collections::hash_map::Entry;
peer.known_messages.insert(message_hash);
if let Entry::Occupied(mut entry) = self.live_message_sinks.entry((engine_id, topic)) {
debug!(target: "gossip", "Pushing consensus message to sinks for {}.", topic);
+1 -1
View File
@@ -66,7 +66,7 @@ pub type BlockResponse<B> = generic::BlockResponse<
/// A set of transactions.
pub type Transactions<E> = Vec<E>;
/// Bits of block data and associated artifacts to request.
// Bits of block data and associated artifacts to request.
bitflags! {
/// Node roles bitmask.
pub struct BlockAttributes: u8 {
-2
View File
@@ -19,8 +19,6 @@ use client::blockchain::HeaderBackend as BlockchainHeaderBackend;
use crate::config::Roles;
use consensus::BlockOrigin;
use std::collections::HashSet;
use std::thread;
use std::time::Duration;
use super::*;
fn test_ancestor_search_when_common_is(n: usize) {