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 elliptic = require('elliptic');
|
||||||
var Signature = require('elliptic/lib/elliptic/ec/signature');
|
var Signature = require('elliptic/lib/elliptic/ec/signature');
|
||||||
var hmacDRBG = require('elliptic/lib/elliptic/hmac-drbg');
|
var hmacDRBG = require('elliptic/lib/elliptic/hmac-drbg');
|
||||||
var crypto = require('./crypto');
|
|
||||||
var curves = elliptic.curves;
|
var curves = elliptic.curves;
|
||||||
var curve = elliptic.ec('secp256k1').curve;
|
var curve = elliptic.ec('secp256k1').curve;
|
||||||
var sha256 = require('./crypto').sha256;
|
var sha256 = require('./crypto').sha256;
|
||||||
|
|||||||
@ -756,7 +756,7 @@ Account.prototype.setLookahead = co(function* setLookahead(lookahead) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
depth = this.receiveDepth + this.lookahead
|
depth = this.receiveDepth + this.lookahead;
|
||||||
target = this.receiveDepth + lookahead;
|
target = this.receiveDepth + lookahead;
|
||||||
|
|
||||||
for (i = depth; i < target; i++) {
|
for (i = depth; i < target; i++) {
|
||||||
@ -764,7 +764,7 @@ Account.prototype.setLookahead = co(function* setLookahead(lookahead) {
|
|||||||
yield this.saveKey(key);
|
yield this.saveKey(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
depth = this.changeDepth + this.lookahead
|
depth = this.changeDepth + this.lookahead;
|
||||||
target = this.changeDepth + lookahead;
|
target = this.changeDepth + lookahead;
|
||||||
|
|
||||||
for (i = depth; i < target; i++) {
|
for (i = depth; i < target; i++) {
|
||||||
@ -773,7 +773,7 @@ Account.prototype.setLookahead = co(function* setLookahead(lookahead) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.witness) {
|
if (this.witness) {
|
||||||
depth = this.nestedDepth + this.lookahead
|
depth = this.nestedDepth + this.lookahead;
|
||||||
target = this.nestedDepth + lookahead;
|
target = this.nestedDepth + lookahead;
|
||||||
|
|
||||||
for (i = depth; i < target; i++) {
|
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) {
|
Wallet.prototype.createTX = co(function* createTX(options, force) {
|
||||||
var outputs = options.outputs;
|
var outputs = options.outputs;
|
||||||
var i, tx, total, output;
|
var i, tx, total;
|
||||||
|
|
||||||
if (!Array.isArray(outputs) || outputs.length === 0)
|
if (!Array.isArray(outputs) || outputs.length === 0)
|
||||||
throw new Error('No outputs.');
|
throw new Error('No outputs.');
|
||||||
|
|||||||
@ -387,7 +387,6 @@ WalletDB.prototype._rescan = co(function* rescan(height) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
WalletDB.prototype.scan = co(function* scan(height) {
|
WalletDB.prototype.scan = co(function* scan(height) {
|
||||||
var self = this;
|
|
||||||
var iter = this._addBlock.bind(this);
|
var iter = this._addBlock.bind(this);
|
||||||
var tip;
|
var tip;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user