pub fn broadcast_header(&self, bh: &core::BlockHeader) {
		let num_peers = self.config.peer_min_preferred_count();
		let count = self.broadcast("header", num_peers, |p| p.send_header(bh));
		debug!(
			LOGGER,
			"broadcast_header: {}, {} at {}, to {} peers, done.",
			bh.hash(),
			bh.pow.total_difficulty,
			bh.height,
			count,
		);
	}
/// Broadcasts the provided header to PEER_PREFERRED_COUNT of our peers.
/// We may be connected to PEER_MAX_COUNT peers so we only
/// want to broadcast to a random subset of peers.
/// A peer implementation may drop the broadcast request
/// if it knows the remote peer already has the header.
Broadcasts the provided header to PEER_PREFERRED_COUNT of our peers.
We may be connected to PEER_MAX_COUNT peers so we only
want to broadcast to a random subset of peers.
A peer implementation may drop the broadcast request
if it knows the remote peer already has the header.
Broadcasts the provided header to PEER_PREFERRED_COUNT of our peers . We may be connected to PEER_MAX_COUNT peers so we only want to broadcast to a random subset of peers . A peer implementation may drop the broadcast request if it knows the remote peer already has the header .
pub fn broadcast_header(&self, bh: &core::BlockHeader) {
		let num_peers = self.config.peer_min_preferred_count();
		let count = self.broadcast("header", num_peers, |p| p.send_header(bh));
		debug!(
			LOGGER,
			"broadcast_header: {}, {} at {}, to {} peers, done.",
			bh.hash(),
			bh.pow.total_difficulty,
			bh.height,
			count,
		);
	}
pub fn broadcast_header ( & self , bh : & core :: BlockHeader ) { let num_peers = self . config . peer_min_preferred_count ( ) ; let count = self . broadcast ( " " , num_peers , | p | p . send_header ( bh ) ) ; debug ! ( LOGGER " " bh hash ( ) bh pow total_difficulty bh height count ) ; }
Broadcasts the provided header to PEER_PREFERRED_COUNT of our peers.
Broadcasts the provided header to PEER_PREFERRED_COUNT of our peers .
&self
bh
&core::BlockHeader