Skip to content

Commit

Permalink
blockchain: additional logging on syncTree
Browse files Browse the repository at this point in the history
  • Loading branch information
dills122 committed Dec 9, 2021
1 parent eea15c2 commit 8e2e3b4
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 8e2e3b4

Please sign in to comment.