From f89e9b72ca56f54a22265b60f3038365f21899cc Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Thu, 6 Jun 2024 05:58:11 -0500 Subject: [PATCH] Add debugging to `prepareTx` --- src/Zenith/Core.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Zenith/Core.hs b/src/Zenith/Core.hs index a8dc6f2..abfb476 100644 --- a/src/Zenith/Core.hs +++ b/src/Zenith/Core.hs @@ -24,7 +24,7 @@ import Data.Binary.Get hiding (getBytes) import qualified Data.ByteString as BS import qualified Data.ByteString.Lazy as LBS import Data.Digest.Pure.MD5 -import Data.HexString (HexString, hexString, toBytes) +import Data.HexString (HexString, hexString, toBytes, toText) import Data.List import Data.Maybe (fromJust) import Data.Pool (Pool) @@ -574,6 +574,7 @@ prepareTx pool zebraHost zebraPort zn za bh amt ua memo = do zn (bh + 3) True + logDebugN $ T.pack $ show tx return tx where makeOutgoing ::