pub fn send_block(&self, b: &core::Block) -> Result<bool, Error> {
		if !self.tracking_adapter.has(b.hash()) {
			trace!(LOGGER, "Send block {} to {}", b.hash(), self.info.addr);
			self.connection
				.as_ref()
				.unwrap()
				.send(b, msg::Type::Block)?;
			Ok(true)
		} else {
			debug!(
				LOGGER,
				"Suppress block send {} to {} (already seen)",
				b.hash(),
				self.info.addr,
			);
			Ok(false)
		}
	}
/// Sends the provided block to the remote peer. The request may be dropped
/// if the remote peer is known to already have the block.
Sends the provided block to the remote peer. The request may be dropped
if the remote peer is known to already have the block.
Sends the provided block to the remote peer . The request may be dropped if the remote peer is known to already have the block .
pub fn send_block(&self, b: &core::Block) -> Result<bool, Error> {
		if !self.tracking_adapter.has(b.hash()) {
			trace!(LOGGER, "Send block {} to {}", b.hash(), self.info.addr);
			self.connection
				.as_ref()
				.unwrap()
				.send(b, msg::Type::Block)?;
			Ok(true)
		} else {
			debug!(
				LOGGER,
				"Suppress block send {} to {} (already seen)",
				b.hash(),
				self.info.addr,
			);
			Ok(false)
		}
	}
pub fn send_block ( & self , b : & core :: Block ) -> Result < bool , Error > { if ! self . tracking_adapter . has ( b . hash ( ) ) { trace ! ( LOGGER " " b hash ( ) self info addr ) ; self . connection . as_ref ( ) . unwrap ( ) . send ( b , msg :: Type :: Block ) ? ; Ok ( true ) } else { debug ! ( LOGGER " " b hash ( ) self info addr ) ; Ok ( false ) } }
Sends the provided block to the remote peer.
Sends the provided block to the remote peer .
&self
b
&core::Block