Skip to content

Commit

Permalink
fix output value.
Browse files Browse the repository at this point in the history
  • Loading branch information
ben2077 committed Apr 1, 2024
1 parent 1a969c7 commit 5aec3ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions txscript/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,10 @@ func (vm *Engine) GetDefaultCheckTemplatePrecomputedData() (map[string][]byte, e

for _, txOut := range vm.tx.TxOut {
outputs.Write(txOut.PkScript)
err := binary.Write(&outputs, binary.LittleEndian, txOut.Value)
if err != nil {
return nil, err
}
}
if outputs.Len() > 0 {
outHash := chainhash.HashB(outputs.Bytes())
Expand Down

0 comments on commit 5aec3ed

Please sign in to comment.