Function solana::streamer::broadcaster[][src]

pub fn broadcaster(
    sock: UdpSocket,
    crdt: Arc<RwLock<Crdt>>,
    window: Window,
    entry_height: u64,
    recycler: BlobRecycler,
    r: BlobReceiver
) -> JoinHandle<()>

Service to broadcast messages from the leader to layer 1 nodes. See crdt for network layer definitions.

Arguments

  • sock - Socket to send from.
  • exit - Boolean to signal system exit.
  • crdt - CRDT structure
  • window - Cache of blobs that we have broadcast
  • recycler - Blob recycler.
  • r - Receive channel for blobs to be retransmitted to all the layer 1 nodes.