start import queue in chain_ops as well

This commit is contained in:
Robert Habermeier
2018-10-17 16:09:05 -07:00
parent e7a50ff52a
commit fa62c8e9df
2 changed files with 15 additions and 7 deletions
+5 -5
View File
@@ -251,15 +251,15 @@ pub trait Link<B: BlockT>: Send {
/// Get chain reference.
fn chain(&self) -> &Client<B>;
/// Block imported.
fn block_imported(&self, hash: &B::Hash, number: NumberFor<B>);
fn block_imported(&self, _hash: &B::Hash, _number: NumberFor<B>) { }
/// Maintain sync.
fn maintain_sync(&self);
fn maintain_sync(&self) { }
/// Disconnect from peer.
fn useless_peer(&self, who: NodeIndex, reason: &str);
fn useless_peer(&self, _who: NodeIndex, _reason: &str) { }
/// Disconnect from peer and restart sync.
fn note_useless_and_restart_sync(&self, who: NodeIndex, reason: &str);
fn note_useless_and_restart_sync(&self, _who: NodeIndex, _reason: &str) { }
/// Restart sync.
fn restart(&self);
fn restart(&self) { }
}
/// A link implementation that connects to the network.