Remove dead code from CliqueBlockCreator (#144)

tmohay 6 years ago committed by GitHub
parent e2468dba07
commit 8e9a1ddc72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      consensus/clique/src/main/java/tech/pegasys/pantheon/consensus/clique/blockcreation/CliqueBlockCreator.java

@ -80,8 +80,6 @@ public class CliqueBlockCreator extends AbstractBlockCreator<CliqueContext> {
final BlockHashFunction blockHashFunction =
ScheduleBasedBlockHashFunction.create(protocolSchedule);
final Optional<BlockHeader> optionalParentHeader =
protocolContext.getBlockchain().getBlockHeader(sealableBlockHeader.getParentHash());
final CliqueContext cliqueContext = protocolContext.getConsensusState();
final VoteTally voteTally = cliqueContext.getVoteTallyCache().getVoteTallyAtBlock(parentHeader);

Loading…
Cancel
Save