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
|
// 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')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue