Part deux.
This commit is contained in:
parent
0007848c07
commit
1d7c998468
@ -852,10 +852,11 @@ BlockService.prototype._logSynced = function(blockHash, noHeight) {
|
|||||||
function(next) {
|
function(next) {
|
||||||
|
|
||||||
if (noHeight) {
|
if (noHeight) {
|
||||||
next(null, null);
|
return next(null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
self._header.getBlockHeader(blockHash, function(err, header) {
|
self._header.getBlockHeader(blockHash, function(err, header) {
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
@ -892,11 +893,10 @@ BlockService.prototype._logSynced = function(blockHash, noHeight) {
|
|||||||
|
|
||||||
var supplementals = '';
|
var supplementals = '';
|
||||||
if (blockHeight && timeDiff) {
|
if (blockHeight && timeDiff) {
|
||||||
supplementals += blockHeight + '. Time between the last 2 blocks (adjusted): ' + timeDiff;
|
supplementals += ' at height: ' + blockHeight + '. Time between the last 2 blocks (adjusted): ' + timeDiff;
|
||||||
}
|
}
|
||||||
|
|
||||||
log.info('Block Service: The best block hash is: ' + blockHash +
|
log.info('Block Service: The best block hash is: ' + blockHash + supplementals);
|
||||||
' at height: ' + supplementals);
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user