From a4e4b35c8dc4acc163b290a1acccf3bd96036897 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 17 Nov 2014 13:09:05 -0800 Subject: [PATCH] remove log pipe. --- lib/bitcoind.js | 14 +------------- src/bitcoindjs.cc | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/lib/bitcoind.js b/lib/bitcoind.js index 7d8d7ff9..0a100452 100644 --- a/lib/bitcoind.js +++ b/lib/bitcoind.js @@ -173,7 +173,7 @@ Bitcoin.prototype.start = function(options, callback) { } }); - this.log_pipe = bitcoindjs.start(options, function(err, status) { + bitcoindjs.start(options, function(err, status) { self._started = true; // Poll for queued packets @@ -347,18 +347,6 @@ Bitcoin.prototype.start = function(options, callback) { this.pollInterval = 300; this._emitted = {}; - - if (this.log_pipe !== -1) { - this.log('log pipe opened: %d', this.log_pipe); - this._pipe = new net.Socket(this.log_pipe); - this._pipe.on('data', function(data) { - return process.stdout.write('bitcoind.js: ' + data + '\n'); - }); - this._pipe.on('error', function(err) { - ; // ignore for now - }); - this._pipe.resume(); - } }; Bitcoin.prototype.getBlock = function(blockHash, callback) { diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 255552aa..92724972 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -652,7 +652,7 @@ NAN_METHOD(StartBitcoind) { assert(status == 0); - NanReturnValue(NanNew(-1)); + NanReturnValue(Undefined()); } /**