From 6026ed811fecd5e76cd5c36426ca543e179a60f7 Mon Sep 17 00:00:00 2001 From: Houmaan Chamani Date: Thu, 29 Feb 2024 15:22:27 -0500 Subject: [PATCH] refactor: remove block height log after broadcasting from ampd (#282) * refactor: remove block height log after broadcasting from ampd * fix: address lint issues with unused package and height variable * fix: bring back tx_hash log, remove height from TxResponse --- ampd/src/broadcaster.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ampd/src/broadcaster.rs b/ampd/src/broadcaster.rs index 33bc8d0d5..bb6b5c58c 100644 --- a/ampd/src/broadcaster.rs +++ b/ampd/src/broadcaster.rs @@ -137,16 +137,14 @@ where .change_context(Error::Broadcast) .await?; let TxResponse { - height, - txhash: tx_hash, - .. + txhash: tx_hash, .. } = &response; - info!(height, tx_hash, "broadcasted transaction"); + info!(tx_hash, "broadcasted transaction"); self.confirm_tx(tx_hash).await?; - info!(height, tx_hash, "confirmed transaction"); + info!(tx_hash, "confirmed transaction"); self.acc_sequence += 1; Ok(response)