fix redeem script push in wallet.

This commit is contained in:
Christopher Jeffrey 2015-12-05 00:50:19 -08:00
parent 1d210589c5
commit 1e10b83acf

View File

@ -319,7 +319,7 @@ Wallet.prototype.sign = function sign(tx, type, inputs, off) {
// P2SH requires a redeem script after signatures
if (bcoin.script.isScripthash(s)) {
if (input.script.length - 1 === this.n) {
if (input.script.length - 1 === this.m) {
input.script.push(this.getP2SHRedemption());
}
}