mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-08 14:32:24 -04:00
Started to extract some steps
Tealised that the whole point is for them to be idempotent to be useful
This commit is contained in:
parent
66866f8fbd
commit
437c1cbb80
4 changed files with 143 additions and 141 deletions
|
@ -186,9 +186,8 @@ pub trait WatchForRawTransaction {
|
|||
async fn watch_for_raw_transaction(&self, txid: Txid) -> Transaction;
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
pub trait GetRawTransaction {
|
||||
async fn get_raw_transaction(&self, txid: Txid) -> Result<Transaction>;
|
||||
pub trait WaitForTransactionFinality {
|
||||
async fn wait_for_transaction_finality(&self, txid: Txid);
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
|
@ -208,7 +207,7 @@ pub trait WaitForBlockHeight {
|
|||
|
||||
#[async_trait]
|
||||
pub trait GetRawTransaction {
|
||||
async fn get_raw_transaction(&self, txid: Txid) -> Option<Transaction>;
|
||||
async fn get_raw_transaction(&self, txid: Txid) -> Result<Transaction>;
|
||||
}
|
||||
|
||||
pub fn recover(S: PublicKey, sig: Signature, encsig: EncryptedSignature) -> Result<SecretKey> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue