diff --git a/example/index.js b/example/index.js index 80c3ad06..5073070c 100755 --- a/example/index.js +++ b/example/index.js @@ -83,7 +83,7 @@ function getBlocks(bitcoind) { }); } - if (argv.all && block.nextblockhash) { + if (block.nextblockhash) { setTimeout(next.bind(null, block.nextblockhash), 500); } }); diff --git a/lib/bitcoind.js b/lib/bitcoind.js index 5ccbf877..f4499755 100644 --- a/lib/bitcoind.js +++ b/lib/bitcoind.js @@ -171,7 +171,7 @@ Bitcoin.prototype.start = function(callback) { 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: ' + data + '\n'); + return process.stdout.write('bitcoind.js: ' + data + '\n'); }); this._pipe.on('error', function(err) { ; // ignore for now @@ -252,7 +252,7 @@ Bitcoin.prototype._pollMempool = function() { Bitcoin.prototype.getBlock = function(blockHash, callback) { return bitcoindjs.getBlock(blockHash, function(err, block) { if (err) return callback(err); - return callback(null, bitcoind.block(block)); + return callback(null, bitcoin.block(block)); }); }; @@ -263,7 +263,7 @@ Bitcoin.prototype.getTx = function(txHash, blockHash, callback) { } return bitcoindjs.getTx(txHash, blockHash, function(err, tx) { if (err) return callback(err); - return callback(null, bitcoind.tx(tx)); + return callback(null, bitcoin.tx(tx)); }); };