fix redeem script push in wallet.
This commit is contained in:
parent
1d210589c5
commit
1e10b83acf
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user