TxBuilder: add explanation for prevOutScript branch
This commit is contained in:
parent
b55e3a0245
commit
e33a6409d3
1 changed files with 1 additions and 0 deletions
|
@ -302,6 +302,7 @@ TransactionBuilder.prototype.sign = function(index, privKey, redeemScript, hashT
|
|||
// initialize it
|
||||
} else {
|
||||
if (redeemScript) {
|
||||
// if we have a prevOutScript, enforce scriptHash equality to the redeemScript
|
||||
if (input.prevOutScript) {
|
||||
assert.equal(input.prevOutType, 'scripthash', 'PrevOutScript must be P2SH')
|
||||
|
||||
|
|
Loading…
Reference in a new issue