File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Insert Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ insertBlockGroupedData syncEnv grouped = do
102
102
lift $ DB. updateListTxOutConsumedByTxId $ catMaybes updateTuples
103
103
void . lift . DB. insertManyTxMetadata $ groupedTxMetadata grouped
104
104
void . lift . DB. insertManyTxMint $ groupedTxMint grouped
105
- pure $ DB. MinIds (minimumMaybe txInIds) (minimumMaybe txOutIds) (minimumMaybe maTxOutIds)
105
+ pure $ DB. MinIds (listToMaybe txInIds) (listToMaybe txOutIds) (listToMaybe maTxOutIds)
106
106
where
107
107
tracer = getTrace syncEnv
108
108
@@ -214,8 +214,3 @@ matches :: Generic.TxIn -> ExtendedTxOut -> Bool
214
214
matches txIn eutxo =
215
215
Generic. txInHash txIn == etoTxHash eutxo
216
216
&& Generic. txInIndex txIn == DB. txOutIndex (etoTxOut eutxo)
217
-
218
- minimumMaybe :: (Ord a , Foldable f ) => f a -> Maybe a
219
- minimumMaybe xs
220
- | null xs = Nothing
221
- | otherwise = Just $ minimum xs
You can’t perform that action at this time.
0 commit comments