address: minor.
This commit is contained in:
parent
e3030f7918
commit
872560eeb9
1
TODO.md
1
TODO.md
@ -27,3 +27,4 @@ Todo before release. Excuse the mess.
|
|||||||
- backupwallet
|
- backupwallet
|
||||||
- listaddressgroupings
|
- listaddressgroupings
|
||||||
- importaddress (maybe)
|
- importaddress (maybe)
|
||||||
|
- rename cost to weight.
|
||||||
|
|||||||
@ -299,7 +299,7 @@ Address.prototype.fromScript = function fromScript(script) {
|
|||||||
|
|
||||||
// Put this last: it's the slowest to check.
|
// Put this last: it's the slowest to check.
|
||||||
if (script.isMultisig()) {
|
if (script.isMultisig()) {
|
||||||
this.hash = utils.hash160(script.toRaw());
|
this.hash = script.hash160();
|
||||||
this.type = scriptTypes.SCRIPTHASH;
|
this.type = scriptTypes.SCRIPTHASH;
|
||||||
this.version = -1;
|
this.version = -1;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user