From c221be195ae9b3132afecaa2c80f4ed3ad91d7ca Mon Sep 17 00:00:00 2001 From: DhananjayPurohit Date: Fri, 29 Dec 2023 13:53:14 +0530 Subject: [PATCH] debug: raw tx hash --- attestation/attestclient.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/attestation/attestclient.go b/attestation/attestclient.go index 8becb3d..7692885 100644 --- a/attestation/attestclient.go +++ b/attestation/attestclient.go @@ -439,7 +439,7 @@ func (w *AttestClient) SignTransaction(hash chainhash.Hash, msgTx wire.MsgTx) ( if prevTxErr != nil { return nil, prevTxErr } - log.Infof("prev tx: %s", prevTx) + log.Infof("prev tx: %v", prevTx.Hash()) var inputs []btcjson.RawTxWitnessInput // new tx inputs var keys []string // keys to sign inputs @@ -478,10 +478,10 @@ func (w *AttestClient) SignTransaction(hash chainhash.Hash, msgTx wire.MsgTx) ( log.Infof("error %v", err) } txHex = hex.EncodeToString(buf.Bytes()) - log.Infof("tx hex %s", txHex) + log.Infof("tx hex %v", txHex) - log.Infof("msg Tx: %s", msgTx) - log.Infof("inputs: %s", inputs) + log.Infof("msg Tx: %v", msgTx) + log.Infof("inputs: %v", inputs) // attempt to sign transcation with provided inputs - keys signedMsgTx, _, errSign := w.MainClient.SignRawTransactionWithWallet3( &msgTx, inputs, "ALL")