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
No related branches found
No related tags found
1 merge request!1298Fix/wotb save at sync
...@@ -149,7 +149,14 @@ export class GlobalIndexStream extends Duplex { ...@@ -149,7 +149,14 @@ export class GlobalIndexStream extends Duplex {
return callback(null); return callback(null);
} }
// Index blocks chunk
await this.transform(dataArray); await this.transform(dataArray);
// Save wot file
if (!this.memoryOnly) {
this.wotbMem.writeInFile(this.wotbFilePath);
}
this.watcher.appliedPercent( this.watcher.appliedPercent(
Math.round( Math.round(
(dataArray[0].block.number / (dataArray[0].block.number /
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment