pub trait TxSenderClientQueueExt {
// Required method
fn add_tx_to_queue<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
dbtx: &'life1 mut TxSenderTransaction,
tx_type: TransactionType,
signed_tx: &'life2 Transaction,
related_txs: &'life3 [(TransactionType, Transaction)],
tx_metadata: Option<TxMetadata>,
protocol_paramset: &'life4 ProtocolParamset,
rbf_info: Option<RbfSigningInfo>,
) -> Pin<Box<dyn Future<Output = Result<u32, BridgeError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
}Required Methods§
Sourcefn add_tx_to_queue<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
dbtx: &'life1 mut TxSenderTransaction,
tx_type: TransactionType,
signed_tx: &'life2 Transaction,
related_txs: &'life3 [(TransactionType, Transaction)],
tx_metadata: Option<TxMetadata>,
protocol_paramset: &'life4 ProtocolParamset,
rbf_info: Option<RbfSigningInfo>,
) -> Pin<Box<dyn Future<Output = Result<u32, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn add_tx_to_queue<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
dbtx: &'life1 mut TxSenderTransaction,
tx_type: TransactionType,
signed_tx: &'life2 Transaction,
related_txs: &'life3 [(TransactionType, Transaction)],
tx_metadata: Option<TxMetadata>,
protocol_paramset: &'life4 ProtocolParamset,
rbf_info: Option<RbfSigningInfo>,
) -> Pin<Box<dyn Future<Output = Result<u32, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Adds a transaction to the txsender sending queue based on core transaction semantics.
This function is a core-level wrapper around TxSenderClient::insert_try_to_send.
It determines the appropriate FeePayingType and any cancellation/activation
dependencies based on the [TransactionType].
IMPORTANT: insert_try_to_send is transactional. This helper requires an active
DB transaction and will not partially insert state.