This commit is contained in:
Christopher Jeffrey 2016-07-16 14:56:27 -07:00
parent 97f25f29f5
commit 2d8274b46e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
6 changed files with 5 additions and 11 deletions

View File

@ -79,7 +79,6 @@
'use strict';
var bcoin = require('./env');
var bn = require('bn.js');
var utils = require('./utils');
var ec = require('./ec');
var assert = utils.assert;

View File

@ -7,6 +7,8 @@
'use strict';
/* jshint -W069 */
var bcoin = require('../env');
var EventEmitter = require('events').EventEmitter;
var constants = bcoin.protocol.constants;
@ -506,7 +508,7 @@ HTTPServer.prototype._init = function _init() {
var options = req.options;
var old = options.old;
var new_ = options.passphrase;
self.walletdb.setPassphrase(id, old, _new, function(err) {
self.walletdb.setPassphrase(id, old, new_, function(err) {
if (err)
return next(err);

View File

@ -9,6 +9,7 @@
var bcoin = require('../env');
var EventEmitter = require('events').EventEmitter;
var assert = require('assert');
var utils = require('../utils');
var http = require('./');

View File

@ -203,8 +203,6 @@ Logger.prototype.debug = function debug() {
*/
Logger.prototype.log = function log(level, args) {
var prefix, color, msg;
if (this.closed)
return;

View File

@ -1935,7 +1935,6 @@ Account.prototype.open = function open(callback) {
*/
Account.prototype.pushKey = function pushKey(key) {
var result = false;
var index = -1;
var i;
@ -1983,7 +1982,6 @@ Account.prototype.pushKey = function pushKey(key) {
*/
Account.prototype.spliceKey = function spliceKey(key) {
var result = false;
var index = -1;
var i;

View File

@ -477,7 +477,7 @@ WalletDB.prototype.hasListener = function hasListener(id, event) {
WalletDB.prototype.get = function get(id, callback) {
var self = this;
var unlock, watcher, wallet;
var unlock, watcher;
unlock = this._lock(id, get, [id, callback]);
@ -576,9 +576,6 @@ WalletDB.prototype.save = function save(wallet) {
*/
WalletDB.prototype.auth = function auth(id, token, callback) {
var self = this;
var wallet;
this._get(id, function(err, wallet) {
if (err)
return callback(err);
@ -704,7 +701,6 @@ WalletDB.prototype.ensure = function ensure(options, callback) {
WalletDB.prototype.getAccount = function getAccount(id, name, callback) {
var self = this;
var account;
this.getAccountIndex(id, name, function(err, index) {
if (err)