walletdb: lint.
This commit is contained in:
parent
0d2391be14
commit
615537def9
@ -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;
|
||||
|
||||
@ -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++) {
|
||||
|
||||
@ -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.');
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user