diff --git a/lib/bcoin/walletdb.js b/lib/bcoin/walletdb.js index 968f5daa..31214dd6 100644 --- a/lib/bcoin/walletdb.js +++ b/lib/bcoin/walletdb.js @@ -15,7 +15,6 @@ var constants = bcoin.protocol.constants; var BufferReader = require('./reader'); var BufferWriter = require('./writer'); var TXDB = require('./txdb'); -var keyTypes = bcoin.keyring.types; /* * Database Layout: @@ -281,7 +280,7 @@ WalletDB.prototype._close = function close(callback) { */ WalletDB.prototype.getDepth = function getDepth(callback) { - var iter, parts, depth; + var iter, depth; // This may seem like a strange way to do // this, but updating a global state when @@ -1254,7 +1253,6 @@ WalletDB.prototype.setTip = function setTip(hash, height, callback) { */ WalletDB.prototype.writeBlock = function writeBlock(block, matches, callback) { - var self = this; var batch = this.db.batch(); var i, hash, wallets; @@ -1280,7 +1278,6 @@ WalletDB.prototype.writeBlock = function writeBlock(block, matches, callback) { */ WalletDB.prototype.unwriteBlock = function unwriteBlock(block, callback) { - var self = this; var batch = this.db.batch(); var prev = new WalletBlock(block.prevBlock, block.height - 1);