diff --git a/app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts b/app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts index 1633a72d0af6991b813b837a6196711355c7e956..be25b7df20b36f64014c2849a6192f36747cb94f 100644 --- a/app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts +++ b/app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts @@ -336,6 +336,8 @@ export class GlobalIndexStream extends Duplex { return block })) + await DuniterBlockchain.pushStatsForBlocks(blocks, this.dal) + if (this.conf.storage && this.conf.storage.transactions) { await Promise.all(blocks.map(block => this.dal.saveTxsInFiles(block.transactions, block.number, block.medianTime))) }