Skip to content

Commit 7fe6254

Browse files
committed
Use named bool arguments
1 parent 532f33b commit 7fe6254

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/main/scala/io/iohk/ethereum/blockchain/sync/regular/BlockImporter.scala

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,26 @@ class BlockImporter(
6666
importBlocks(blocks, DefaultBlockImport)(state)
6767

6868
case MinedBlock(block) if !state.importing =>
69-
importBlock(block, new MinedBlockImportMessages(block), MinedBlockImport, false, true)(state)
69+
importBlock(
70+
block,
71+
new MinedBlockImportMessages(block),
72+
MinedBlockImport,
73+
informFetcherOnFail = false,
74+
internally = true
75+
)(state)
7076

7177
//We don't want to lose a checkpoint
7278
case nc @ NewCheckpoint(_) if state.importing =>
7379
context.system.scheduler.scheduleOnce(1.second, self, nc)
7480

7581
case NewCheckpoint(block) if !state.importing =>
76-
importBlock(block, new CheckpointBlockImportMessages(block), CheckpointBlockImport, false, true)(state)
82+
importBlock(
83+
block,
84+
new CheckpointBlockImportMessages(block),
85+
CheckpointBlockImport,
86+
informFetcherOnFail = false,
87+
internally = true
88+
)(state)
7789

7890
case ImportNewBlock(block, peerId) if state.isOnTop && !state.importing =>
7991
importBlock(

0 commit comments

Comments
 (0)