|
@ -302,6 +302,7 @@ TransactionBuilder.prototype.sign = function(index, privKey, redeemScript, hashT |
|
|
// initialize it
|
|
|
// initialize it
|
|
|
} else { |
|
|
} else { |
|
|
if (redeemScript) { |
|
|
if (redeemScript) { |
|
|
|
|
|
// if we have a prevOutScript, enforce scriptHash equality to the redeemScript
|
|
|
if (input.prevOutScript) { |
|
|
if (input.prevOutScript) { |
|
|
assert.equal(input.prevOutType, 'scripthash', 'PrevOutScript must be P2SH') |
|
|
assert.equal(input.prevOutType, 'scripthash', 'PrevOutScript must be P2SH') |
|
|
|
|
|
|
|
|