address: minor.

This commit is contained in:
Christopher Jeffrey 2016-08-26 15:27:07 -07:00
parent e3030f7918
commit 872560eeb9
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 2 additions and 1 deletions

View File

@ -27,3 +27,4 @@ Todo before release. Excuse the mess.
- backupwallet
- listaddressgroupings
- importaddress (maybe)
- rename cost to weight.

View File

@ -299,7 +299,7 @@ Address.prototype.fromScript = function fromScript(script) {
// Put this last: it's the slowest to check.
if (script.isMultisig()) {
this.hash = utils.hash160(script.toRaw());
this.hash = script.hash160();
this.type = scriptTypes.SCRIPTHASH;
this.version = -1;
return this;