Skip to content
Snippets Groups Projects

[fix] #1090 `--cautious` option was broken

Merged Cédric Moreau requested to merge fix/sync_cautious into 1.6
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -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
Loading