From 615537def9c5b44a139b5ef7656bdd3dafc5c68a Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 9 Nov 2016 18:34:59 -0800 Subject: [PATCH] walletdb: lint. --- lib/crypto/schnorr.js | 1 - lib/wallet/account.js | 6 +++--- lib/wallet/wallet.js | 2 +- lib/wallet/walletdb.js | 1 - 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/crypto/schnorr.js b/lib/crypto/schnorr.js index f4c79ded..8b716f64 100644 --- a/lib/crypto/schnorr.js +++ b/lib/crypto/schnorr.js @@ -10,7 +10,6 @@ var BN = require('bn.js'); var elliptic = require('elliptic'); var Signature = require('elliptic/lib/elliptic/ec/signature'); var hmacDRBG = require('elliptic/lib/elliptic/hmac-drbg'); -var crypto = require('./crypto'); var curves = elliptic.curves; var curve = elliptic.ec('secp256k1').curve; var sha256 = require('./crypto').sha256; diff --git a/lib/wallet/account.js b/lib/wallet/account.js index 333b290d..951e4836 100644 --- a/lib/wallet/account.js +++ b/lib/wallet/account.js @@ -756,7 +756,7 @@ Account.prototype.setLookahead = co(function* setLookahead(lookahead) { return; } - depth = this.receiveDepth + this.lookahead + depth = this.receiveDepth + this.lookahead; target = this.receiveDepth + lookahead; for (i = depth; i < target; i++) { @@ -764,7 +764,7 @@ Account.prototype.setLookahead = co(function* setLookahead(lookahead) { yield this.saveKey(key); } - depth = this.changeDepth + this.lookahead + depth = this.changeDepth + this.lookahead; target = this.changeDepth + lookahead; for (i = depth; i < target; i++) { @@ -773,7 +773,7 @@ Account.prototype.setLookahead = co(function* setLookahead(lookahead) { } if (this.witness) { - depth = this.nestedDepth + this.lookahead + depth = this.nestedDepth + this.lookahead; target = this.nestedDepth + lookahead; for (i = depth; i < target; i++) { diff --git a/lib/wallet/wallet.js b/lib/wallet/wallet.js index f7fb140a..878917a0 100644 --- a/lib/wallet/wallet.js +++ b/lib/wallet/wallet.js @@ -1455,7 +1455,7 @@ Wallet.prototype._fund = co(function* fund(tx, options) { Wallet.prototype.createTX = co(function* createTX(options, force) { var outputs = options.outputs; - var i, tx, total, output; + var i, tx, total; if (!Array.isArray(outputs) || outputs.length === 0) throw new Error('No outputs.'); diff --git a/lib/wallet/walletdb.js b/lib/wallet/walletdb.js index dc90434b..581c150f 100644 --- a/lib/wallet/walletdb.js +++ b/lib/wallet/walletdb.js @@ -387,7 +387,6 @@ WalletDB.prototype._rescan = co(function* rescan(height) { */ WalletDB.prototype.scan = co(function* scan(height) { - var self = this; var iter = this._addBlock.bind(this); var tip;