From b5c889dde7a1e8825f8268820f174856857608c4 Mon Sep 17 00:00:00 2001 From: "Tony Arcieri (iqlusion)" Date: Mon, 5 Oct 2020 16:55:47 -0700 Subject: [PATCH] tx_signer: debug transaction hex (#145) Adds a `debug!` directive which prints the entire transaction as hex --- src/tx_signer.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tx_signer.rs b/src/tx_signer.rs index db0c3f9e..910f924a 100644 --- a/src/tx_signer.rs +++ b/src/tx_signer.rs @@ -319,6 +319,12 @@ impl TxSigner { tx.to_amino_bytes(self.tx_builder.schema().namespace()), ); + debug!( + "[{}] broadcasting TX: {:X?}", + self.chain_id, + amino_tx.as_ref() + ); + let response = self.rpc_client.broadcast_tx_sync(amino_tx).await?; if response.code.is_ok() {