File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
src/main/scala/io/iohk/ethereum/blockchain/sync/regular Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -73,18 +73,17 @@ class BlockImporter(
73
73
false ,
74
74
true )(state)
75
75
76
- case nc @ NewCheckpoint (block) =>
77
- if (state.importing) {
78
- // We don't want to lose a checkpoint
76
+ // We don't want to lose a checkpoint
77
+ case nc @ NewCheckpoint (_) if state.importing =>
79
78
context.system.scheduler.scheduleOnce(1 .second, self, nc)
80
- } else {
81
- importBlock(
82
- block,
83
- new CheckpointBlockImportMessages ( block) ,
84
- CheckpointBlockImport ,
85
- false ,
86
- true )(state)
87
- }
79
+
80
+ case NewCheckpoint (block) if ! state.importing =>
81
+ importBlock(
82
+ block,
83
+ new CheckpointBlockImportMessages (block) ,
84
+ CheckpointBlockImport ,
85
+ false ,
86
+ true )(state)
88
87
89
88
case ImportNewBlock (block, peerId) if state.isOnTop && ! state.importing =>
90
89
importBlock(
You can’t perform that action at this time.
0 commit comments