pub trait BroadcastTransaction {
// Required method
fn broadcast_transaction(
&mut self,
tx: &TransactionRef,
max_tx_fee: &Amount,
relay: bool,
err_string: &mut String
) -> bool;
}
Required Methods§
sourcefn broadcast_transaction(
&mut self,
tx: &TransactionRef,
max_tx_fee: &Amount,
relay: bool,
err_string: &mut String
) -> bool
fn broadcast_transaction( &mut self, tx: &TransactionRef, max_tx_fee: &Amount, relay: bool, err_string: &mut String ) -> bool
| Transaction is added to memory pool, if | the transaction fee is below the amount | specified by max_tx_fee, and broadcast to | all peers if relay is set to true. Return | false if the transaction could not be | added due to the fee or for another | reason.