minor: lint.
This commit is contained in:
parent
1cda7cb702
commit
f192dab0a6
@ -270,10 +270,6 @@ function escape(str) {
|
|||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseAmount(amount, size) {
|
|
||||||
return Amount.value(amount);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Expose
|
* Expose
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -239,11 +239,11 @@ HTTPBase.prototype._close = function close(callback) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle middleware stack.
|
* Handle middleware stack.
|
||||||
|
* @private
|
||||||
* @param {HTTPRequest} req
|
* @param {HTTPRequest} req
|
||||||
* @param {HTTPResponse} res
|
* @param {HTTPResponse} res
|
||||||
* @param {Function} send
|
* @param {Function} send
|
||||||
* @returns {Promise}
|
* @returns {Promise}
|
||||||
* @private
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
HTTPBase.prototype.handleStack = function handleStack(req, res, send, callback) {
|
HTTPBase.prototype.handleStack = function handleStack(req, res, send, callback) {
|
||||||
@ -452,7 +452,6 @@ function Route(ctx, path, callback) {
|
|||||||
Route.prototype.compile = function compile() {
|
Route.prototype.compile = function compile() {
|
||||||
var path = this.path;
|
var path = this.path;
|
||||||
var map = this.map;
|
var map = this.map;
|
||||||
var regex;
|
|
||||||
|
|
||||||
if (this.compiled)
|
if (this.compiled)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -237,6 +237,9 @@ HTTPServer.prototype._init = function _init() {
|
|||||||
if (censored.mnemonic != null)
|
if (censored.mnemonic != null)
|
||||||
censored.mnemonic = '<redacted>';
|
censored.mnemonic = '<redacted>';
|
||||||
|
|
||||||
|
if (censored.token != null)
|
||||||
|
censored.token = '<redacted>';
|
||||||
|
|
||||||
this.logger.debug(censored);
|
this.logger.debug(censored);
|
||||||
|
|
||||||
if (params.id) {
|
if (params.id) {
|
||||||
@ -585,7 +588,7 @@ HTTPServer.prototype._init = function _init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (cmd.method !== 'getblocktemplate' && cmd.method !== 'getwork') {
|
if (cmd.method !== 'getblocktemplate' && cmd.method !== 'getwork') {
|
||||||
this.logger.debug('Handling RPC call : %s.', cmd.method);
|
this.logger.debug('Handling RPC call: %s.', cmd.method);
|
||||||
if (cmd.method !== 'submitblock')
|
if (cmd.method !== 'submitblock')
|
||||||
this.logger.debug(cmd.params);
|
this.logger.debug(cmd.params);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user