Browse Source

Callee should take care of the logging

debug-collab-settlement
bonomat 3 years ago
parent
commit
d48a39a56f
No known key found for this signature in database GPG Key ID: E5F8E74C672BC666
  1. 4
      daemon/src/maker.rs
  2. 4
      daemon/src/taker.rs
  3. 2
      daemon/src/wallet.rs

4
daemon/src/maker.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(());
} }

4
daemon/src/taker.rs

@ -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(());
} }

2
daemon/src/wallet.rs

@ -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)
} }
} }

Loading…
Cancel
Save