From 8675d124a26e57450f4ebc4a83fd51be5453891e Mon Sep 17 00:00:00 2001 From: Kostas Dermentzis Date: Thu, 17 Aug 2023 11:40:26 +0300 Subject: [PATCH] Fix epoch_stake migration --- cardano-db-sync/src/Cardano/DbSync/Fix/EpochStake.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cardano-db-sync/src/Cardano/DbSync/Fix/EpochStake.hs b/cardano-db-sync/src/Cardano/DbSync/Fix/EpochStake.hs index 6a99098c3..0ac5b27a0 100644 --- a/cardano-db-sync/src/Cardano/DbSync/Fix/EpochStake.hs +++ b/cardano-db-sync/src/Cardano/DbSync/Fix/EpochStake.hs @@ -23,7 +23,7 @@ migrateStakeDistr env mcls = case (envLedgerEnv env, mcls) of (HasLedger lenv, Strict.Just cls) -> do ems <- lift DB.queryAllExtraMigrations - runWhen (DB.isStakeDistrComplete ems) $ do + runWhen (not $ DB.isStakeDistrComplete ems) $ do liftIO $ logInfo trce "Starting Stake Distribution migration on table epoch_stake" let stakeSlice = getStakeSlice lenv cls True case stakeSlice of