Pass an encoded Roles as the notifications protocols handshakes (#5665)

This commit is contained in:
Pierre Krieger
2020-04-21 10:47:37 +02:00
committed by GitHub
parent 5db336c743
commit f2578bdc3b
5 changed files with 71 additions and 38 deletions
@@ -113,6 +113,8 @@ pub struct GenericProto {
legacy_protocol: RegisteredProtocol,
/// Notification protocols. Entries are only ever added and not removed.
/// Contains, for each protocol, the protocol name and the message to send as part of the
/// initial handshake.
notif_protocols: Vec<(Cow<'static, [u8]>, Vec<u8>)>,
/// Receiver for instructions about who to connect to or disconnect from.