This commit is contained in:
Christopher Jeffrey 2016-10-04 23:17:28 -07:00
parent 0eb29e50b5
commit 279df328d1
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 3 additions and 3 deletions

View File

@ -778,7 +778,7 @@ ChainDB.prototype.getUndoView = co(function* getUndoView(block) {
ChainDB.prototype.getBlock = co(function* getBlock(hash) {
var item = yield this.getBoth(hash);
var height, data, block;
var data, block;
if (!item.hash)
return;

View File

@ -693,12 +693,12 @@ Account.prototype.getAddressType = function getAddressType(path) {
return Script.types.SCRIPTHASH;
if (this.witness) {
if (this.type === Acount.types.MULTISIG)
if (this.type === Account.types.MULTISIG)
return Script.types.WITNESSSCRIPTHASH;
return Script.types.WITNESSPUBKEYHASH;
}
if (this.type === Acount.types.MULTISIG)
if (this.type === Account.types.MULTISIG)
return Script.types.SCRIPTHASH;
return Script.types.PUBKEYHASH;