Skip to content

Commit

Permalink
Merge PR #668 of 'dills122/blockchain-sync-tree-additional-logging'
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Dec 9, 2021
2 parents e1d3969 + 8e2e3b4 commit b8928ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/blockchain/chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ class Chain extends AsyncEmitter {
const {treeInterval} = this.network.names;
const last = this.height - (this.height % treeInterval);

this.logger.info('Synchronizing Tree with block history...');

for (let height = last + 1; height <= this.height; height++) {
const entry = await this.db.getEntryByHeight(height);
assert(entry);
Expand Down

0 comments on commit b8928ea

Please sign in to comment.