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:
authored and Pierre Krieger committed 2019-06-26 13:30:39 +02:00
1 parent 0ddf4a2a00
commit e735853ca3
9 files changed
+181 -14

No files matched your search

+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 =