From 5d15eb1c5f21c1d5db52fed3815eb7bc1a8649c3 Mon Sep 17 00:00:00 2001 From: Trent Mohay <37158202+rain-on@users.noreply.github.com> Date: Thu, 2 May 2019 13:38:24 +1000 Subject: [PATCH] Update Log message in IBFT Controller (#1387) --- .../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={}",