Skip to content

Commit

Permalink
Update Log message in IBFT Controller (PegaSysEng#1387)
Browse files Browse the repository at this point in the history
  • Loading branch information
rain-on authored and notlesh committed May 14, 2019
1 parent 52b20bd commit 5d15eb1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ private <P extends IbftMessage<?>> void consumeMessage(
public void handleNewBlockEvent(final NewChainHead newChainHead) {
final BlockHeader newBlockHeader = newChainHead.getNewChainHeadHeader();
final BlockHeader currentMiningParent = currentHeightManager.getParentBlockHeader();
LOG.debug("Handling New Chain head event, chain height={}", currentMiningParent.getNumber());
LOG.debug(
"New chain head detected (block number={})," + " currently mining on top of {}.",
newBlockHeader.getNumber(),
currentMiningParent.getNumber());
if (newBlockHeader.getNumber() < currentMiningParent.getNumber()) {
LOG.trace(
"Discarding NewChainHead event, was for previous block height. chainHeight={} eventHeight={}",
Expand Down

0 comments on commit 5d15eb1

Please sign in to comment.