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