Skip to content

Commit 13dd768

Browse files
committed
[ETCM-27] Fix DAO reorg test
1 parent 6a30763 commit 13dd768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class BlockImport(
215215
*/
216216
private def removeBlocksUntil(parent: ByteString, fromNumber: BigInt): List[BlockData] = {
217217
blockchain.getBlockByNumber(fromNumber) match {
218-
case Some(block) if block.header.hash == parent =>
218+
case Some(block) if block.header.hash == parent || fromNumber == 0 =>
219219
Nil
220220

221221
case Some(block) =>

0 commit comments

Comments
 (0)