Skip to content

Commit

Permalink
fix some warnings about unused values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurélien Richez committed Jul 29, 2021
1 parent f13aeba commit f43918f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
Expand Up @@ -9,15 +9,13 @@ import io.iohk.ethereum.blockchain.sync.regular.RegularSync.NewCheckpoint
import io.iohk.ethereum.consensus.blocks.CheckpointBlockGenerator
import io.iohk.ethereum.crypto.ECDSASignature
import io.iohk.ethereum.domain.Block
import io.iohk.ethereum.domain.Blockchain
import io.iohk.ethereum.domain.BlockchainReader
import io.iohk.ethereum.domain.Checkpoint
import io.iohk.ethereum.ledger.BlockQueue
import io.iohk.ethereum.utils.ByteStringUtils
import io.iohk.ethereum.utils.Logger

class CheckpointingService(
blockchain: Blockchain,
blockchainReader: BlockchainReader,
blockQueue: BlockQueue,
checkpointBlockGenerator: CheckpointBlockGenerator,
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/io/iohk/ethereum/ledger/BlockImport.scala
Expand Up @@ -86,7 +86,7 @@ class BlockImport(
private def isPossibleNewBestBlock(newBlock: BlockHeader, currentBestBlock: BlockHeader): Boolean =
newBlock.parentHash == currentBestBlock.hash && newBlock.number == currentBestBlock.number + 1

private def measureBlockMetrics(importResult: BlockImportResult)(implicit blockchainConfig: BlockchainConfig): Unit =
private def measureBlockMetrics(importResult: BlockImportResult): Unit =
importResult match {
case BlockImportedToTop(blockImportData) =>
blockImportData.foreach(blockData => BlockMetrics.measure(blockData.block, blockchainReader.getBlockByHash))
Expand Down
Expand Up @@ -570,7 +570,6 @@ trait CheckpointingServiceBuilder {

lazy val checkpointingService =
new CheckpointingService(
blockchain,
blockchainReader,
blockQueue,
checkpointBlockGenerator,
Expand Down
Expand Up @@ -191,6 +191,6 @@ class CheckpointingServiceSpec
val syncController: TestProbe = TestProbe()
val checkpointBlockGenerator: CheckpointBlockGenerator = new CheckpointBlockGenerator()
val service =
new CheckpointingService(blockchain, blockchainReader, blockQueue, checkpointBlockGenerator, syncController.ref)
new CheckpointingService(blockchainReader, blockQueue, checkpointBlockGenerator, syncController.ref)
}
}

0 comments on commit f43918f

Please sign in to comment.