Small formatting changes
This commit is contained in:
parent
f488a02d2d
commit
8715aa5071
@ -952,7 +952,7 @@ HeaderService.prototype._adjustHeadersForCheckPointTip = function(callback) {
|
|||||||
var start = self._encoding.encodeHeaderHeightKey(self._tip.height);
|
var start = self._encoding.encodeHeaderHeightKey(self._tip.height);
|
||||||
var end = self._encoding.encodeHeaderHeightKey(0xffffffff);
|
var end = self._encoding.encodeHeaderHeightKey(0xffffffff);
|
||||||
|
|
||||||
log.info('Getting last header synced at height: ' + self._tip.height);
|
log.info('Header Service: Getting last header synced at height: ' + self._tip.height);
|
||||||
|
|
||||||
var criteria = {
|
var criteria = {
|
||||||
gte: start,
|
gte: start,
|
||||||
@ -972,6 +972,7 @@ HeaderService.prototype._adjustHeadersForCheckPointTip = function(callback) {
|
|||||||
// any records with a height greater than our current tip height can be scheduled for removal
|
// any records with a height greater than our current tip height can be scheduled for removal
|
||||||
// because they will be replaced shortly
|
// because they will be replaced shortly
|
||||||
// and for every height record, we must also remove its hash record
|
// and for every height record, we must also remove its hash record
|
||||||
|
|
||||||
if (header.height > self._tip.height) {
|
if (header.height > self._tip.height) {
|
||||||
removalOps.push({
|
removalOps.push({
|
||||||
type: 'del',
|
type: 'del',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user