From fbed93fd392c7fb760aaf877f3850cecfd63a041 Mon Sep 17 00:00:00 2001 From: tmohay Date: Thu, 2 May 2019 11:41:38 +1000 Subject: [PATCH] Update Log message in IBFT Controller --- .../pantheon/consensus/ibft/statemachine/IbftController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/consensus/ibft/src/main/java/tech/pegasys/pantheon/consensus/ibft/statemachine/IbftController.java b/consensus/ibft/src/main/java/tech/pegasys/pantheon/consensus/ibft/statemachine/IbftController.java index f792eeff92..aa34266409 100644 --- a/consensus/ibft/src/main/java/tech/pegasys/pantheon/consensus/ibft/statemachine/IbftController.java +++ b/consensus/ibft/src/main/java/tech/pegasys/pantheon/consensus/ibft/statemachine/IbftController.java @@ -127,7 +127,10 @@ private

> 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={}",