diff --git a/Connection.js b/Connection.js index 3558b15..21a4670 100644 --- a/Connection.js +++ b/Connection.js @@ -20,8 +20,6 @@ function spec(b) { var doubleSha256 = b.doubleSha256 || util.twoSha256; var nonce = util.generateNonce(); - var Block = require('./Block').class(); - var BIP0031_VERSION = 60000; function Connection(socket, peer) { diff --git a/RpcClient.js b/RpcClient.js index 5e3b78e..959ea31 100644 --- a/RpcClient.js +++ b/RpcClient.js @@ -180,7 +180,9 @@ function ClassSpec(b) { }); }); req.on('error', function(e) { - log.err('Could not connect to bitcoin via RPC: '+e); + var err = new Error('Could not connect to bitcoin via RPC: '+e.message); + log.err(err); + callback(err); }); req.setHeader('Content-Length', request.length); diff --git a/config.js b/config.js index 313ee63..aea295c 100644 --- a/config.js +++ b/config.js @@ -1,4 +1,4 @@ module.exports = { network: 'livenet', - logging: 'normal' // none, normal, debug + logger: 'normal' // none, normal, debug };