Skip to content

Commit 77242d8

Browse files
committed
[ETCM-302] Log reorganised branch parent hash
1 parent 657d4ca commit 77242d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/scala/io/iohk/ethereum/ledger/BlockImport.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,11 @@ class BlockImport(
151151
parentHash = parent.header.parentHash
152152
parentWeight <- blockchain.getChainWeightByHash(parentHash)
153153
} yield {
154-
log.debug("Removing blocks starting from {}", bestNumber)
154+
log.debug(
155+
"Removing blocks starting from number {} and parent {}",
156+
bestNumber,
157+
ByteStringUtils.hash2string(parentHash)
158+
)
155159
val oldBlocksData = removeBlocksUntil(parentHash, bestNumber).reverse
156160
oldBlocksData.foreach(block => blockQueue.enqueueBlock(block.block))
157161
handleBlockExecResult(newBranch, parentWeight, oldBlocksData)

0 commit comments

Comments
 (0)