Skip to content

Commit

Permalink
Remove retirement certificates during database rollback.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Jul 7, 2020
1 parent 7045dc2 commit f3c9ec3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core/src/Cardano/Pool/DB/Sqlite.hs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ newDBLayer trace fp = do
deleteWhere [ PoolProductionSlot >. point ]
deleteWhere [ StakeDistributionEpoch >. fromIntegral epoch ]
deleteWhere [ PoolRegistrationSlot >. point ]
deleteWhere [ PoolRetirementSlot >. point ]
-- TODO: remove dangling metadata no longer attached to a pool

, readPoolProductionCursor = \k -> do
Expand Down

0 comments on commit f3c9ec3

Please sign in to comment.