Skip to content

Commit

Permalink
Fix epoch_stake migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kderme committed Aug 17, 2023
1 parent 34e1e59 commit 8675d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cardano-db-sync/src/Cardano/DbSync/Fix/EpochStake.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8675d12

Please sign in to comment.