We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a30763 commit 13dd768Copy full SHA for 13dd768
src/main/scala/io/iohk/ethereum/ledger/BlockImport.scala
@@ -215,7 +215,7 @@ class BlockImport(
215
*/
216
private def removeBlocksUntil(parent: ByteString, fromNumber: BigInt): List[BlockData] = {
217
blockchain.getBlockByNumber(fromNumber) match {
218
- case Some(block) if block.header.hash == parent =>
+ case Some(block) if block.header.hash == parent || fromNumber == 0 =>
219
Nil
220
221
case Some(block) =>
0 commit comments