Skip to content

Commit 532f33b

Browse files
committed
Scalafmt
1 parent e3a1c51 commit 532f33b

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

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

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

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

7671
//We don't want to lose a checkpoint
7772
case nc @ NewCheckpoint(_) if state.importing =>
78-
context.system.scheduler.scheduleOnce(1.second, self, nc)
73+
context.system.scheduler.scheduleOnce(1.second, self, nc)
7974

8075
case NewCheckpoint(block) if !state.importing =>
81-
importBlock(
82-
block,
83-
new CheckpointBlockImportMessages(block),
84-
CheckpointBlockImport,
85-
false,
86-
true)(state)
76+
importBlock(block, new CheckpointBlockImportMessages(block), CheckpointBlockImport, false, true)(state)
8777

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

src/main/scala/io/iohk/ethereum/jsonrpc/QAService.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ class QAService(
5050
hash match {
5151
case Some(hashValue) =>
5252
Task {
53-
val parent = blockchain.getBlockByHash(hashValue).orElse(blockchain.getBestBlock()).getOrElse(blockchain.genesisBlock)
53+
val parent =
54+
blockchain.getBlockByHash(hashValue).orElse(blockchain.getBestBlock()).getOrElse(blockchain.genesisBlock)
5455
val checkpoint = generateCheckpoint(hashValue, req.privateKeys)
5556
val checkpointBlock: Block = checkpointBlockGenerator.generate(parent, checkpoint)
5657
syncController ! NewCheckpoint(checkpointBlock)

0 commit comments

Comments
 (0)