pub fn broadcast_stem_transaction(&self, tx: &core::Transaction) -> Result<(), Error> {
		let dandelion_relay = self.get_dandelion_relay();
		if dandelion_relay.is_empty() {
			debug!(LOGGER, "No dandelion relay, updating.");
			self.update_dandelion_relay();
		}
		// If still return an error, let the caller handle this as they see fit.
		// The caller will "fluff" at this point as the stem phase is finished.
		if dandelion_relay.is_empty() {
			return Err(Error::NoDandelionRelay);
		}
		for relay in dandelion_relay.values() {
			if relay.is_connected() {
				if let Err(e) = relay.send_stem_transaction(tx) {
					debug!(
						LOGGER,
						"Error sending stem transaction to peer relay: {:?}", e
					);
				}
			}
		}
		Ok(())
	}
/// Broadcasts the provided stem transaction to our peer relay.
Broadcasts the provided stem transaction to our peer relay.
Broadcasts the provided stem transaction to our peer relay .
pub fn broadcast_stem_transaction(&self, tx: &core::Transaction) -> Result<(), Error> {
		let dandelion_relay = self.get_dandelion_relay();
		if dandelion_relay.is_empty() {
			debug!(LOGGER, "No dandelion relay, updating.");
			self.update_dandelion_relay();
		}
		// If still return an error, let the caller handle this as they see fit.
		// The caller will "fluff" at this point as the stem phase is finished.
		if dandelion_relay.is_empty() {
			return Err(Error::NoDandelionRelay);
		}
		for relay in dandelion_relay.values() {
			if relay.is_connected() {
				if let Err(e) = relay.send_stem_transaction(tx) {
					debug!(
						LOGGER,
						"Error sending stem transaction to peer relay: {:?}", e
					);
				}
			}
		}
		Ok(())
	}
pub fn broadcast_stem_transaction ( & self , tx : & core :: Transaction ) -> Result < ( ) , Error > { let dandelion_relay = self . get_dandelion_relay ( ) ; if dandelion_relay . is_empty ( ) { debug ! ( LOGGER " " ) ; self . update_dandelion_relay ( ) ; } // If still return an error, let the caller handle this as they see fit. // The caller will "fluff" at this point as the stem phase is finished. if dandelion_relay . is_empty ( ) { return Err ( Error :: NoDandelionRelay ) ; } for relay in dandelion_relay . values ( ) { if relay . is_connected ( ) { if let Err ( e ) = relay . send_stem_transaction ( tx ) { debug ! ( LOGGER " " e ) ; } } } Ok ( ( ) ) }
Broadcasts the provided stem transaction to our peer relay.
Broadcasts the provided stem transaction to our peer relay .
&self
tx
&core::Transaction