diff --git a/app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts b/app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts index df7aa5b1d2f7039aec4059dea34b7240bbc7fdf4..b4c222601ac1f293f6e980ab79bd8340bf9386c8 100644 --- a/app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts +++ b/app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts @@ -149,7 +149,14 @@ export class GlobalIndexStream extends Duplex { return callback(null); } + // Index blocks chunk await this.transform(dataArray); + + // Save wot file + if (!this.memoryOnly) { + this.wotbMem.writeInFile(this.wotbFilePath); + } + this.watcher.appliedPercent( Math.round( (dataArray[0].block.number /