Skip to content

Commit

Permalink
debug: raw tx hash
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Dec 29, 2023
1 parent 43aff5b commit c221be1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions attestation/attestclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit c221be1

Please sign in to comment.