This commit is contained in:
Christopher Jeffrey 2016-05-05 06:25:10 -07:00
parent 98774d0c0b
commit 8e65b43d40
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -189,6 +189,8 @@ Address.prototype.getProgram = function getProgram() {
} else if (this.type === 'multisig') {
hash = Address.sha256(this.getScript().encode());
program = bcoin.script.createWitnessProgram(0, hash);
} else {
assert(false, 'Unknown address type.');
}
this._program = program;
}