Also save and load blocks to cache.json for speedy restarts.

This commit is contained in:
softsimon
2020-02-29 21:52:04 +07:00
parent 50b4e1523e
commit 39394e1178
2 changed files with 18 additions and 4 deletions

View File

@@ -14,6 +14,10 @@ class Blocks {
return this.blocks;
}
public setBlocks(blocks: Block[]) {
this.blocks = blocks;
}
public setNewBlockCallback(fn: Function) {
this.newBlockCallback = fn;
}