Skip to content
Snippets Groups Projects
Commit 0203bb96 authored by Éloïs's avatar Éloïs
Browse files

[fix] sync: save wot file on sync

parent 267d2b0c
Branches
Tags
1 merge request!1298Fix/wotb save at sync
......@@ -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 /
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment