Skip to content
Snippets Groups Projects
Unverified Commit d930c305 authored by Cédric Moreau's avatar Cédric Moreau Committed by GitHub
Browse files

Merge pull request #1202 from duniter/fix/sync_cautious

[fix] #1090 `--cautious` option was broken
parents 9fbe45d2 7eb2a1f1
No related branches found
No related tags found
No related merge requests found
...@@ -258,7 +258,8 @@ export class Synchroniser extends stream.Duplex { ...@@ -258,7 +258,8 @@ export class Synchroniser extends stream.Duplex {
return block; return block;
} }
async applyMainBranch(block: BlockDTO): Promise<boolean> { 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.server.streamPush(addedBlock);
this.watcher.appliedPercent(Math.floor(block.number / to * 100)); this.watcher.appliedPercent(Math.floor(block.number / to * 100));
return true return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment