remove log pipe.
This commit is contained in:
parent
f647de9a32
commit
a4e4b35c8d
@ -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;
|
self._started = true;
|
||||||
|
|
||||||
// Poll for queued packets
|
// Poll for queued packets
|
||||||
@ -347,18 +347,6 @@ Bitcoin.prototype.start = function(options, callback) {
|
|||||||
this.pollInterval = 300;
|
this.pollInterval = 300;
|
||||||
|
|
||||||
this._emitted = {};
|
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) {
|
Bitcoin.prototype.getBlock = function(blockHash, callback) {
|
||||||
|
|||||||
@ -652,7 +652,7 @@ NAN_METHOD(StartBitcoind) {
|
|||||||
|
|
||||||
assert(status == 0);
|
assert(status == 0);
|
||||||
|
|
||||||
NanReturnValue(NanNew<Number>(-1));
|
NanReturnValue(Undefined());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user