Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 258dbb0

Browse files
committed
[CBR-482] dropObftEbb: don't roll back genesis out of existence during startup
Discusion in: https://iohk.myjetbrains.com/youtrack/issue/CBR-482
1 parent aa8172c commit 258dbb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/Pos/Worker/Block.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ dropObftEbb genesisConfig txpConfig = do
211211
tipHeader <- DB.getTipHeader
212212
case tipHeader of
213213
BlockHeaderMain _ -> pure ()
214-
BlockHeaderGenesis _ -> do
214+
BlockHeaderGenesis _ -> unless (tipHeader ^. epochIndexL == 0) $ do
215215
mbEbbBlund <- getBlund (configGenesisHash genesisConfig)
216216
(blockHeaderHash tipHeader)
217217
case mbEbbBlund of

0 commit comments

Comments
 (0)