Skip to content

Commit

Permalink
debug: tx and preevtx txout amt value
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Jan 16, 2024
1 parent 33628f0 commit 9eda274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion attestation/attestclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,9 @@ func (w *AttestClient) SignTransaction(hash chainhash.Hash, msgTx wire.MsgTx) (
witnessProgram, err := txscript.PayToAddrScript(addrPubKey)
log.Infof("Witness program: %v", hex.EncodeToString(witnessProgram))
log.Infof("TxOut amt %v", msgTx.TxOut[0].Value)
log.Infof("Prev TxOut amt %v", prevTx.MsgTx().TxOut[0].Value)
msgTx.TxOut[0].PkScript = witnessProgram
msgTx.TxOut[0].Value = msgTx.TxOut[0].Value - 2200
msgTx.TxOut[0].Value = prevTx.MsgTx().TxOut[0].Value - 2200
// witnessScript := hex.EncodeToString(witnessProgram)
// // add prev attestation tx input info and priv key
// inputs = append(inputs, btcjson.RawTxWitnessInput{
Expand Down

0 comments on commit 9eda274

Please sign in to comment.