From 8e9a1ddc72687f48b61099f0807a72efdf4a4e33 Mon Sep 17 00:00:00 2001 From: tmohay <37158202+rain-on@users.noreply.github.com> Date: Thu, 25 Oct 2018 19:57:28 +1100 Subject: [PATCH] Remove dead code from CliqueBlockCreator (#144) --- .../consensus/clique/blockcreation/CliqueBlockCreator.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/consensus/clique/src/main/java/tech/pegasys/pantheon/consensus/clique/blockcreation/CliqueBlockCreator.java b/consensus/clique/src/main/java/tech/pegasys/pantheon/consensus/clique/blockcreation/CliqueBlockCreator.java index 3f9e7fe06f..b06c6bd7ca 100644 --- a/consensus/clique/src/main/java/tech/pegasys/pantheon/consensus/clique/blockcreation/CliqueBlockCreator.java +++ b/consensus/clique/src/main/java/tech/pegasys/pantheon/consensus/clique/blockcreation/CliqueBlockCreator.java @@ -80,8 +80,6 @@ public class CliqueBlockCreator extends AbstractBlockCreator { final BlockHashFunction blockHashFunction = ScheduleBasedBlockHashFunction.create(protocolSchedule); - final Optional optionalParentHeader = - protocolContext.getBlockchain().getBlockHeader(sealableBlockHeader.getParentHash()); final CliqueContext cliqueContext = protocolContext.getConsensusState(); final VoteTally voteTally = cliqueContext.getVoteTallyCache().getVoteTallyAtBlock(parentHeader);