minor: fixes.
This commit is contained in:
parent
ebb2341323
commit
c6ca9d5dbf
@ -83,7 +83,7 @@ function getBlocks(bitcoind) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argv.all && block.nextblockhash) {
|
if (block.nextblockhash) {
|
||||||
setTimeout(next.bind(null, block.nextblockhash), 500);
|
setTimeout(next.bind(null, block.nextblockhash), 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -171,7 +171,7 @@ Bitcoin.prototype.start = function(callback) {
|
|||||||
this.log('log pipe opened: %d', this.log_pipe);
|
this.log('log pipe opened: %d', this.log_pipe);
|
||||||
this._pipe = new net.Socket(this.log_pipe);
|
this._pipe = new net.Socket(this.log_pipe);
|
||||||
this._pipe.on('data', function(data) {
|
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) {
|
this._pipe.on('error', function(err) {
|
||||||
; // ignore for now
|
; // ignore for now
|
||||||
@ -252,7 +252,7 @@ Bitcoin.prototype._pollMempool = function() {
|
|||||||
Bitcoin.prototype.getBlock = function(blockHash, callback) {
|
Bitcoin.prototype.getBlock = function(blockHash, callback) {
|
||||||
return bitcoindjs.getBlock(blockHash, function(err, block) {
|
return bitcoindjs.getBlock(blockHash, function(err, block) {
|
||||||
if (err) return callback(err);
|
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) {
|
return bitcoindjs.getTx(txHash, blockHash, function(err, tx) {
|
||||||
if (err) return callback(err);
|
if (err) return callback(err);
|
||||||
return callback(null, bitcoind.tx(tx));
|
return callback(null, bitcoin.tx(tx));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user