Trait narwhal_network::LuckyNetwork
source · [−]pub trait LuckyNetwork<Request> {
type Response: Clone + Send + Sync;
fn lucky_broadcast(
&mut self,
peers: Vec<NetworkPublicKey>,
message: &Request,
num_nodes: usize
) -> Vec<Result<JoinHandle<Result<Response<Self::Response>>>>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
;
}
Required Associated Types
Required Methods
Pick a few addresses at random (specified by nodes
) and try (best-effort) to send the
message only to them. This is useful to pick nodes with whom to sync.