remove log pipe.

This commit is contained in:
Christopher Jeffrey 2014-11-17 13:09:05 -08:00
parent f647de9a32
commit a4e4b35c8d
2 changed files with 2 additions and 14 deletions

View File

@ -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) {

View File

@ -652,7 +652,7 @@ NAN_METHOD(StartBitcoind) {
assert(status == 0);
NanReturnValue(NanNew<Number>(-1));
NanReturnValue(Undefined());
}
/**