From 7eb2a1f1143bcdc8bca89d5599acf25b412afe8b Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Tue, 14 Nov 2017 16:40:38 +0100 Subject: [PATCH] [fix] #1090 `--cautious` option was broken --- app/modules/crawler/lib/sync.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/modules/crawler/lib/sync.ts b/app/modules/crawler/lib/sync.ts index aa7e6e6a1..e5f39d8a7 100644 --- a/app/modules/crawler/lib/sync.ts +++ b/app/modules/crawler/lib/sync.ts @@ -258,7 +258,8 @@ export class Synchroniser extends stream.Duplex { return block; } async applyMainBranch(block: BlockDTO): Promise<boolean> { - const addedBlock = await this.BlockchainService.submitBlock(block) + const addedBlock = await this.BlockchainService.submitBlock(block, true) + await this.BlockchainService.blockResolution() this.server.streamPush(addedBlock); this.watcher.appliedPercent(Math.floor(block.number / to * 100)); return true -- GitLab