mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-30 20:46:33 -05:00
merging master changes
This commit is contained in:
commit
925c7bc179
37 changed files with 279 additions and 219 deletions
|
|
@ -377,17 +377,10 @@ impl Request {
|
|||
"result": []
|
||||
})
|
||||
}
|
||||
Method::Cancel => {
|
||||
Method::CancelAndRefund => {
|
||||
let bitcoin_wallet = context.bitcoin_wallet.as_ref().unwrap();
|
||||
|
||||
let (txid, _) = cli::cancel(
|
||||
self.params.swap_id.unwrap(),
|
||||
Arc::clone(bitcoin_wallet),
|
||||
Arc::clone(&context.db),
|
||||
)
|
||||
.await?;
|
||||
|
||||
tracing::debug!("Cancel transaction successfully published with id {}", txid);
|
||||
let (txid, _) = cli::cancel_and_refund(swap_id, Arc::clone(bitcoin_wallet), Arc::clone(&context.db).await?;
|
||||
|
||||
json!({
|
||||
"txid": txid,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue