diff --git a/src/plugins/Workers/TransactionSyncStreamWorker/methods/syncUpToTheGapLimit.js b/src/plugins/Workers/TransactionSyncStreamWorker/methods/syncUpToTheGapLimit.js index 4f6247fa..ab2aab57 100644 --- a/src/plugins/Workers/TransactionSyncStreamWorker/methods/syncUpToTheGapLimit.js +++ b/src/plugins/Workers/TransactionSyncStreamWorker/methods/syncUpToTheGapLimit.js @@ -91,7 +91,7 @@ module.exports = async function syncUpToTheGapLimit({ } }) .on('error', (err) => { - logger.silly('TransactionSyncStreamWorker - end stream on error'); + logger.silly(`TransactionSyncStreamWorker - end stream on error: ${err}`); reject(err); }) .on('end', () => { diff --git a/src/types/Storage/methods/importBlockHeader.js b/src/types/Storage/methods/importBlockHeader.js index 36122a4c..04458ab3 100644 --- a/src/types/Storage/methods/importBlockHeader.js +++ b/src/types/Storage/methods/importBlockHeader.js @@ -25,6 +25,7 @@ const importBlockHeader = function importBlockHeader(blockHeader, height) { chainStore.mappedBlockHeaderHeights[blockHeight] = blockHeader.hash; self.announce(EVENTS.BLOCKHEADER, blockHeader); + this.lastModified = Date.now(); } }; module.exports = importBlockHeader;