Skip to content

Commit cb61094

Browse files
authored
Merge pull request #1954 from IntersectMBO/kderme/prepare-13.6.0.5
Prepare 13.6.0.5
2 parents ce2fbc3 + 8692f30 commit cb61094

File tree

14 files changed

+35
-73
lines changed

14 files changed

+35
-73
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Revision history for cardano-db-sync
22

3+
## 13.6.0.5
4+
- Fix offchain data so it supports files up to 3MB [#1928]
5+
- Upgrade to PostgreSQL 17
6+
- Stop creating views and deleting them on every restart [#1950]
7+
- Maintain less snapshots
8+
- No longer crash if stage 1 or 2 migration have been altered
9+
- Improvements for Address variant
10+
311
## 13.6.0.4
412
- Fixes an issue from ledger where DRep delegations could be removed under some conditions
513
- Fix an issue with migration from 13.5.x when consumed_tx_out config is enabled

cardano-chain-gen/cardano-chain-gen.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 3.6
22

33
name: cardano-chain-gen
4-
version: 13.6.0.4
4+
version: 13.6.0.5
55
synopsis: A fake chain generator for testing cardano DB sync.
66
description: A fake chain generator for testing cardano DB sync.
77
homepage: https://github.com/IntersectMBO/cardano-db-sync

cardano-db-sync/cardano-db-sync.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 3.6
22

33
name: cardano-db-sync
4-
version: 13.6.0.4
4+
version: 13.6.0.5
55
synopsis: The Cardano DB Sync node
66
description: A Cardano node that follows the Cardano chain and inserts data from the
77
chain into a PostgresQL database.

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ runDbSync metricsSetters knownMigrations iomgr trce params syncNodeConfigFromFil
8888
whenJust mErrors $ \(unknown, stage4orNewStage3) ->
8989
if stage4orNewStage3
9090
then logWarning trce $ Db.renderMigrationValidateError unknown
91-
else do
92-
let msg = Db.renderMigrationValidateError unknown
93-
logError trce msg
94-
throwIO unknown
91+
else logError trce $ Db.renderMigrationValidateError unknown
9592

9693
logInfo trce "Schema migration files validated"
9794

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ storeSnapshotAndCleanupMaybe env oldState appResult blkNo isCons syncState =
333333
Just newEpoch
334334
| newEpochNo <- unEpochNo (Generic.neEpoch newEpoch)
335335
, newEpochNo > 0
336-
, isCons || (newEpochNo `mod` 10 == 0) || newEpochNo >= 503 ->
336+
, isCons || (newEpochNo `mod` 10 == 0) || newEpochNo >= 530 ->
337337
do
338338
-- TODO: Instead of newEpochNo - 1, is there any way to get the epochNo from 'lssOldState'?
339339
liftIO $ saveCleanupState env oldState (Just $ EpochNo $ newEpochNo - 1)
@@ -480,10 +480,10 @@ cleanupLedgerStateFiles env slotNo = do
480480
let (epochBoundary, valid, invalid) = foldr groupFiles ([], [], []) files
481481
-- Remove invalid (ie SlotNo >= current) ledger state files (occurs on rollback).
482482
deleteAndLogFiles env "invalid" invalid
483-
-- Remove all but 6 most recent state files.
484-
deleteAndLogStateFile env "old" (List.drop 3 valid)
485-
-- Remove all but 6 most recent epoch boundary state files.
486-
deleteAndLogStateFile env "old epoch boundary" (List.drop 6 epochBoundary)
483+
-- Remove all but 2 most recent state files.
484+
deleteAndLogStateFile env "old" (List.drop 2 valid)
485+
-- Remove all but 3 most recent epoch boundary state files.
486+
deleteAndLogStateFile env "old epoch boundary" (List.drop 3 epochBoundary)
487487
where
488488
groupFiles ::
489489
LedgerStateFile ->

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ httpGetOffChainVoteDataSingle ::
105105
httpGetOffChainVoteDataSingle vurl metaHash anchorType = do
106106
manager <- liftIO $ Http.newManager tlsManagerSettings
107107
request <- parseOffChainUrl url
108-
let req = httpGetBytes manager request 300000 300000 url
108+
let req = httpGetBytes manager request 3000000 3000000 url
109109
httpRes <- handleExceptT (convertHttpException url) req
110110
(respBS, respLBS, mContentType) <- hoistEither httpRes
111111
(ocvd, decodedValue, metadataHash, mWarning) <- parseAndValidateVoteData respBS respLBS metaHash anchorType (Just $ OffChainVoteUrl vurl)

cardano-db-tool/cardano-db-tool.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 3.6
22

33
name: cardano-db-tool
4-
version: 13.6.0.4
4+
version: 13.6.0.5
55
synopsis: Utilities to manage the cardano-db-sync databases.
66
description: Utilities and executable, used to manage and validate the
77
PostgreSQL db and the ledger database of the cardano-db-sync node

cardano-db/cardano-db.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 3.6
22

33
name: cardano-db
4-
version: 13.6.0.4
4+
version: 13.6.0.5
55
synopsis: A base PostgreSQL component for the cardano-db-sync node.
66
description: Code for the Cardano DB Sync node that is shared between the
77
cardano-db-node and other components.

cardano-db/test/cardano-db-test.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 3.6
22

33
name: cardano-db-test
4-
version: 13.6.0.4
4+
version: 13.6.0.5
55
synopsis: Tests for the base functionality of the cardano-db library
66
description: Code for the Cardano DB Sync node that is shared between the
77
cardano-db-node and other components.

cardano-smash-server/cardano-smash-server.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 3.6
22

33
name: cardano-smash-server
4-
version: 13.6.0.4
4+
version: 13.6.0.5
55
synopsis: The Cardano smash server
66
description: Please see the README on GitHub at
77
<https://github.com/IntersectMBO/cardano-db-sync/cardano-smash-server/#readme>

0 commit comments

Comments
 (0)