Add DHT key-value behaviour (#2937)

* Add DHT key-value behaviour

* Apply suggestions from code review

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* Apply suggestions from code review

Co-Authored-By: Pierre Krieger <pierre.krieger1708@gmail.com>

* Return which key failed to be inserted
This commit is contained in:
Fedor Sakharov
2019-06-26 14:30:39 +03:00
committed by Pierre Krieger
parent 0ddf4a2a00
commit e735853ca3
9 changed files with 181 additions and 14 deletions
+5
View File
@@ -196,6 +196,11 @@ impl NetworkSpecialization<Block> for DummySpecialization {
_peer_id: PeerId,
_message: &mut Option<crate::message::Message<Block>>,
) {}
fn on_event(
&mut self,
_event: crate::event::Event
) {}
}
pub type PeersFullClient =