Skip to content

Commit

Permalink
refactor: remove block height log after broadcasting from ampd (#282)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
maancham authored Feb 29, 2024
1 parent f2dfea8 commit 6026ed8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ampd/src/broadcaster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6026ed8

Please sign in to comment.