Skip to content

Commit

Permalink
Prepare tag 13.1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kderme committed May 30, 2023
1 parent 6b07707 commit 2026122
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cardano-chain-gen/cardano-chain-gen.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cabal-version: 3.0

name: cardano-chain-gen
version: 13.1.1.1
version: 13.1.1.2
synopsis: A fake chain generator for testing cardano DB sync.
description: A fake chain generator for testing cardano DB sync.
homepage: https://github.com/input-output-hk/cardano-db-sync
Expand Down
3 changes: 2 additions & 1 deletion cardano-db-sync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Revision history for cardano-db-sync

## 13.1.1.1
## 13.1.1.2
* Adds compatibility with node-8.0.0 [#1403]
* Adds compatibility with the new format of the CostModel in Alonzo genesis file [#1403]
* Adds a procedure which fixes scripts with wrong cbor [Issue #1348]
Expand All @@ -11,6 +11,7 @@
* Fixed an issue with smash returning `InvalidUrlException` [#1353]
* Takes less snapshots, since big rollbacks are now faster
* When `--disable-ledger` is enabled a `--state-dir` is no longer required
* Added experimental extra migrations, controlled by `consumed-tx-out` and `prune-tx-out`

## 13.1.0.2
* Upgrade dependencies and integrates a fix in ledger internal data structures.
Expand Down
2 changes: 1 addition & 1 deletion cardano-db-sync/app/cardano-db-sync.hs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ pPruneTxOut =
( Opt.long "prune-tx-out"
<> Opt.help "Prunes the consumed tx_out periodically. This assumes \
\ consumed-tx-out is also set, even if it's not. If this is set once,\
\ then it must be always be set on following executions of db-sync."
\ then it must be always set on following executions of db-sync."
)

pVersionCommand :: Parser SyncCommand
Expand Down
2 changes: 1 addition & 1 deletion cardano-db-sync/cardano-db-sync.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cabal-version: 3.0

name: cardano-db-sync
version: 13.1.1.1
version: 13.1.1.2
synopsis: The Cardano DB Sync node
description: A Cardano node that follows the Cardano chain and inserts data from the
chain into a PostgresQL database.
Expand Down
2 changes: 1 addition & 1 deletion cardano-db-tool/cardano-db-tool.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cabal-version: 3.0

name: cardano-db-tool
version: 13.1.1.1
version: 13.1.1.2
synopsis: Utilities to manage the cardano-db-sync databases.
description: Utilities and executable, used to manage and validate the
PostgreSQL db and the ledger database of the cardano-db-sync node
Expand Down
2 changes: 1 addition & 1 deletion cardano-db/cardano-db.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cabal-version: 3.0

name: cardano-db
version: 13.1.1.1
version: 13.1.1.2
synopsis: A base PostgreSQL component for the cardano-db-sync node.
description: Code for the Cardano DB Sync node that is shared between the
cardano-db-node and other components.
Expand Down
2 changes: 1 addition & 1 deletion cardano-db/test/cardano-db-test.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cabal-version: 3.0

name: cardano-db-test
version: 13.1.1.1
version: 13.1.1.2
synopsis: Tests for the base functionality of the cardano-db library
description: Code for the Cardano DB Sync node that is shared between the
cardano-db-node and other components.
Expand Down
2 changes: 1 addition & 1 deletion cardano-smash-server/cardano-smash-server.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cabal-version: 3.0

name: cardano-smash-server
version: 13.1.1.1
version: 13.1.1.2
synopsis: The Cardano smash server
description: Please see the README on GitHub at
<https://github.com/input-output-hk/cardano-db-sync/cardano-smash-server/#readme>
Expand Down
15 changes: 15 additions & 0 deletions doc/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,18 @@ issues.

With this option the epoch table is left empty. Mostly left for historical reasons, since it
provides a negligible improvement in sync time.

### --consumed-tx-out

Adds a new field `tx_out (consumed_by_tx_in_id)` and populated it accordingly. This allows users to
query the tx_out table for unspent outputs directly, without the need to join with the tx_in table.
If this is set once, then it must be always be set on following executions of db-sync, unless
`prune-tx-out` is used instead.

### --prune-tx-out

If `prune-tx-out` is set it's assumed that --consumed-tx-out is also set, even if it's not.
This flag periodically prunes the consumed tx_out table. So it allows to query for utxo
without having to maintain the whole tx_out table. Deletes to `tx_out` are propagated to `ma_tx_out`
through foreign keys. If this is set once, then it must be always set on following executions of
db-sync. Failure to do this can result in crashed and db-sync currently has no way to detect it.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ services:
max-file: "10"

cardano-db-sync:
image: inputoutput/cardano-db-sync:13.1.1.1
image: inputoutput/cardano-db-sync:13.1.1.2
environment:
- NETWORK=${NETWORK:-mainnet}
- POSTGRES_HOST=postgres
Expand Down

0 comments on commit 2026122

Please sign in to comment.