mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Finish transaction signing task with TX rebroadcast code
This commit is contained in:
@@ -19,15 +19,15 @@ pub trait TransactionPublisher<S: SignableTransaction>: 'static + Send + Sync {
|
||||
///
|
||||
/// This MUST be an ephemeral error. Retrying publication MUST eventually resolve without manual
|
||||
/// intervention/changing the arguments.
|
||||
///
|
||||
/// The transaction already being present in the mempool/on-chain SHOULD NOT be considered an
|
||||
/// error.
|
||||
type EphemeralError: Debug;
|
||||
|
||||
/// Publish a transaction.
|
||||
///
|
||||
/// This will be called multiple times, with the same transaction, until the transaction is
|
||||
/// confirmed on-chain.
|
||||
///
|
||||
/// The transaction already being present in the mempool/on-chain MUST NOT be considered an
|
||||
/// error.
|
||||
async fn publish(
|
||||
&self,
|
||||
tx: <S::PreprocessMachine as PreprocessMachine>::Signature,
|
||||
|
||||
Reference in New Issue
Block a user