From 5a9e72575e65171244f3e9d501c340235633fe4f Mon Sep 17 00:00:00 2001 From: wangjiling Date: Wed, 14 Nov 2018 17:00:54 +0800 Subject: [PATCH] revert witnessValue param --- src/transaction_builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction_builder.js b/src/transaction_builder.js index 9b2d706c6..32cf27b78 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -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) }