pub fn broadcast_transaction(&self, tx: &core::Transaction) {
		let num_peers = self.config.peer_min_preferred_count();
		let count = self.broadcast("transaction", num_peers, |p| p.send_transaction(tx));
		trace!(
			LOGGER,
			"broadcast_transaction: {}, to {} peers, done.",
			tx.hash(),
			count,
		);
	}
/// Broadcasts the provided transaction 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 transaction.
Broadcasts the provided transaction 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 transaction.
Broadcasts the provided transaction 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 transaction .
pub fn broadcast_transaction(&self, tx: &core::Transaction) {
		let num_peers = self.config.peer_min_preferred_count();
		let count = self.broadcast("transaction", num_peers, |p| p.send_transaction(tx));
		trace!(
			LOGGER,
			"broadcast_transaction: {}, to {} peers, done.",
			tx.hash(),
			count,
		);
	}
pub fn broadcast_transaction ( & self , tx : & core :: Transaction ) { let num_peers = self . config . peer_min_preferred_count ( ) ; let count = self . broadcast ( " " , num_peers , | p | p . send_transaction ( tx ) ) ; trace ! ( LOGGER " " tx hash ( ) count ) ; }
Broadcasts the provided transaction to PEER_PREFERRED_COUNT of our
peers.
Broadcasts the provided transaction to PEER_PREFERRED_COUNT of our peers .
&self
tx
&core::Transaction