pub fn broadcast_compact_block(&self, b: &core::CompactBlock) {
		let num_peers = self.config.peer_max_count();
		let count = self.broadcast("compact block", num_peers, |p| p.send_compact_block(b));
		debug!(
			LOGGER,
			"broadcast_compact_block: {}, {} at {}, to {} peers, done.",
			b.hash(),
			b.header.pow.total_difficulty,
			b.header.height,
			count,
		);
	}
/// Broadcasts the provided compact block to PEER_MAX_COUNT of our peers.
/// This is only used when initially broadcasting a newly mined block
/// from a mining node so we want to broadcast it far and wide.
/// A peer implementation may drop the broadcast request
/// if it knows the remote peer already has the block.
Broadcasts the provided compact block to PEER_MAX_COUNT of our peers.
This is only used when initially broadcasting a newly mined block
from a mining node so we want to broadcast it far and wide.
A peer implementation may drop the broadcast request
if it knows the remote peer already has the block.
Broadcasts the provided compact block to PEER_MAX_COUNT of our peers . This is only used when initially broadcasting a newly mined block from a mining node so we want to broadcast it far and wide . A peer implementation may drop the broadcast request if it knows the remote peer already has the block .
pub fn broadcast_compact_block(&self, b: &core::CompactBlock) {
		let num_peers = self.config.peer_max_count();
		let count = self.broadcast("compact block", num_peers, |p| p.send_compact_block(b));
		debug!(
			LOGGER,
			"broadcast_compact_block: {}, {} at {}, to {} peers, done.",
			b.hash(),
			b.header.pow.total_difficulty,
			b.header.height,
			count,
		);
	}
pub fn broadcast_compact_block ( & self , b : & core :: CompactBlock ) { let num_peers = self . config . peer_max_count ( ) ; let count = self . broadcast ( " " , num_peers , | p | p . send_compact_block ( b ) ) ; debug ! ( LOGGER " " b hash ( ) b header pow total_difficulty b header height count ) ; }
Broadcasts the provided compact block to PEER_MAX_COUNT of our peers.
Broadcasts the provided compact block to PEER_MAX_COUNT of our peers .
&self
b
&core::CompactBlock