Skip to content

Commit 5473d2e

Browse files
committed
Remove reward constraint hack
Since instant rewards no longer cause a uniqueness issue
1 parent 1a2b326 commit 5473d2e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cardano-db-sync/src/Cardano/DbSync.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ import Cardano.DbSync.Rollback (unsafeRollback)
5151
import Cardano.DbSync.Sync (runSyncNodeClient)
5252
import Cardano.DbSync.Tracing.ToObjectOrphans ()
5353
import Cardano.DbSync.Types
54-
import Cardano.DbSync.Util.Constraint (addRewardConstraintsIfNotExist)
5554
import Cardano.Prelude hiding (Nat, (%))
5655
import Cardano.Slotting.Slot (EpochNo (..))
5756
import Control.Concurrent.Async
@@ -180,7 +179,6 @@ runSyncNode metricsSetters trce iomgr dbConnString ranMigrations runMigrationFnc
180179
syncNodeParams
181180
ranMigrations
182181
runMigrationFnc
183-
liftIO $ runReaderT (addRewardConstraintsIfNotExist syncEnv trce) (envBackend syncEnv)
184182
liftIO $ runExtraMigrationsMaybe syncEnv
185183
unless (enpShouldUseLedger syncNodeParams) $ liftIO $ do
186184
logInfo trce "Migrating to a no ledger schema"

0 commit comments

Comments
 (0)