Browse Source
Callee should take care of the logging
debug-collab-settlement
bonomat
3 years ago
No known key found for this signature in database
GPG Key ID: E5F8E74C672BC666
3 changed files with
4 additions and
6 deletions
-
daemon/src/maker.rs
-
daemon/src/taker.rs
-
daemon/src/wallet.rs
|
@ -183,7 +183,7 @@ async fn main() -> Result<()> { |
|
|
fee, |
|
|
fee, |
|
|
}) = opts.network.withdraw() |
|
|
}) = opts.network.withdraw() |
|
|
{ |
|
|
{ |
|
|
let txid = wallet |
|
|
wallet |
|
|
.send(wallet::Withdraw { |
|
|
.send(wallet::Withdraw { |
|
|
amount: *amount, |
|
|
amount: *amount, |
|
|
address: address.clone(), |
|
|
address: address.clone(), |
|
@ -191,8 +191,6 @@ async fn main() -> Result<()> { |
|
|
}) |
|
|
}) |
|
|
.await??; |
|
|
.await??; |
|
|
|
|
|
|
|
|
tracing::info!(%txid, "Withdraw successful"); |
|
|
|
|
|
|
|
|
|
|
|
return Ok(()); |
|
|
return Ok(()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
@ -192,7 +192,7 @@ async fn main() -> Result<()> { |
|
|
fee, |
|
|
fee, |
|
|
}) = opts.network.withdraw() |
|
|
}) = opts.network.withdraw() |
|
|
{ |
|
|
{ |
|
|
let txid = wallet |
|
|
wallet |
|
|
.send(wallet::Withdraw { |
|
|
.send(wallet::Withdraw { |
|
|
amount: *amount, |
|
|
amount: *amount, |
|
|
address: address.clone(), |
|
|
address: address.clone(), |
|
@ -200,8 +200,6 @@ async fn main() -> Result<()> { |
|
|
}) |
|
|
}) |
|
|
.await??; |
|
|
.await??; |
|
|
|
|
|
|
|
|
tracing::info!(%txid, "Withdraw successful"); |
|
|
|
|
|
|
|
|
|
|
|
return Ok(()); |
|
|
return Ok(()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
@ -217,6 +217,8 @@ impl Actor { |
|
|
|
|
|
|
|
|
let txid = wallet.broadcast(psbt.extract_tx())?; |
|
|
let txid = wallet.broadcast(psbt.extract_tx())?; |
|
|
|
|
|
|
|
|
|
|
|
tracing::info!(%txid, "Withdraw successful"); |
|
|
|
|
|
|
|
|
Ok(txid) |
|
|
Ok(txid) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|