Skip to content

Commit

Permalink
revert witnessValue param
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjiling committed Nov 14, 2018
1 parent 0d65f92 commit 5a9e725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transaction_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ TransactionBuilder.prototype.sign = function (vin, keyPair, redeemScript, hashTy
if (input.witness) {
signatureHash = this.tx.hashForWitnessV0(vin, input.signScript, input.value, hashType)
} else if (overwintered || this.tx.overwintered) {
signatureHash = this.tx.hashForZIP143(vin, input.signScript, input.value, hashType)
signatureHash = this.tx.hashForZIP143(vin, input.signScript, witnessValue, hashType)
} else {
signatureHash = this.tx.hashForSignature(vin, input.signScript, hashType)
}
Expand Down

0 comments on commit 5a9e725

Please sign in to comment.