mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 12:49:23 +00:00
Only let active Serai validators connect over P2P
This commit is contained in:
@@ -59,12 +59,11 @@ pub(crate) fn new_behavior() -> Behavior {
|
||||
})
|
||||
.build();
|
||||
|
||||
// TODO: Don't use IdentityTransform here. Authenticate using validator keys
|
||||
let mut gossipsub = Behavior::new(MessageAuthenticity::Anonymous, config.unwrap()).unwrap();
|
||||
let mut gossip = Behavior::new(MessageAuthenticity::Anonymous, config.unwrap()).unwrap();
|
||||
|
||||
// Subscribe to the base topic
|
||||
let topic = IdentTopic::new(BASE_TOPIC);
|
||||
let _ = gossipsub.subscribe(&topic);
|
||||
let _ = gossip.subscribe(&topic);
|
||||
|
||||
gossipsub
|
||||
gossip
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user