Ensure any call to disable peer has a reason (#321)

* Fix warnings in libp2p

* Force a reason when you use the fatalist disable_peer

* Print more information

* Slightly more concise ref-fu

* Tracing for figuring out what's going into genesis

* Merge

* Fxi test
This commit is contained in:
Gav Wood
2018-07-15 23:30:53 +02:00
committed by GitHub
parent 1e1ddf61f2
commit 0e40983f3b
3 changed files with 10 additions and 11 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ impl Context<Block> for TestContext {
unimplemented!()
}
fn disable_peer(&mut self, peer: PeerId) {
fn disable_peer(&mut self, peer: PeerId, _reason: &str) {
self.disabled.push(peer);
}