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 1aeb2825af
commit c78478cf03
23 changed files with 131 additions and 124 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);
}