TransactionBuilder: signatureScript is only defined once
This commit is contained in:
parent
fbcc23fa14
commit
302b4f0796
1 changed files with 1 additions and 2 deletions
|
@ -424,7 +424,6 @@ TransactionBuilder.prototype.sign = function (index, keyPair, redeemScript, hash
|
||||||
input.signatures.length === input.pubKeys.length
|
input.signatures.length === input.pubKeys.length
|
||||||
|
|
||||||
var kpPubKey = keyPair.getPublicKeyBuffer()
|
var kpPubKey = keyPair.getPublicKeyBuffer()
|
||||||
var signatureScript
|
|
||||||
|
|
||||||
// are we ready to sign?
|
// are we ready to sign?
|
||||||
if (canSign) {
|
if (canSign) {
|
||||||
|
@ -482,7 +481,7 @@ TransactionBuilder.prototype.sign = function (index, keyPair, redeemScript, hash
|
||||||
}
|
}
|
||||||
|
|
||||||
// ready to sign?
|
// ready to sign?
|
||||||
signatureScript = signatureScript || input.redeemScript || input.prevOutScript
|
var signatureScript = input.redeemScript || input.prevOutScript
|
||||||
var signatureHash = this.tx.hashForSignature(index, signatureScript, hashType)
|
var signatureHash = this.tx.hashForSignature(index, signatureScript, hashType)
|
||||||
|
|
||||||
// enforce in order signing of public keys
|
// enforce in order signing of public keys
|
||||||
|
|
Loading…
Reference in a new issue