diff --git a/lib/chain/chaindb.js b/lib/chain/chaindb.js index 0a7bf213..cad325a3 100644 --- a/lib/chain/chaindb.js +++ b/lib/chain/chaindb.js @@ -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; diff --git a/lib/wallet/account.js b/lib/wallet/account.js index 4e26680c..47882951 100644 --- a/lib/wallet/account.js +++ b/lib/wallet/account.js @@ -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;