walletdb: lint.

This commit is contained in:
Christopher Jeffrey 2016-11-09 18:34:59 -08:00
parent 0d2391be14
commit 615537def9
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
4 changed files with 4 additions and 6 deletions

View File

@ -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;

View File

@ -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++) {

View File

@ -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.');

View File

@ -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;