Skip to content

Commit

Permalink
bump dbsync to 13.6.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 authored and rdlrt committed Nov 25, 2024
1 parent a2a5acc commit 3360a8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/Build/dbsync.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ At high-level, this would involve steps as below (read and update paths as per y
``` bash

# Replace the actual link below with the latest one from release notes
curl -fL 'https://share.koios.rest/api/public/dl/xFdZDfM4/dbsync/mainnet-dbsnap-latest-x86_64.tgz' -o /tmp/dbsyncsnap.tgz
curl -fL 'https://share.koios.rest/api/public/dl/xFdZDfM4/dbsync/mainnet-dbsyncsnap-latest.tgz' -o /tmp/dbsyncsnap.tgz
rm -rf ${CNODE_HOME}/guild-db/ledger-state ; mkdir -p ${CNODE_HOME}/guild-db/ledger-state
cd -; cd ~/git/cardano-db-sync
scripts/postgresql-setup.sh --restore-snapshot /tmp/dbsyncsnap.tgz ${CNODE_HOME}/guild-db/ledger-state
Expand Down Expand Up @@ -108,12 +108,12 @@ Updating dbsync can have different tasks depending on the versions involved. We

- Shutdown dbsync (eg: `sudo systemctl stop cnode-dbsync`)
- Update binaries (either download pre-compiled binaries via [guild-deploy.sh](../basics.md#pre-requisites) or using build instructions above)
- Go to your git folder, pull and checkout to latest version as in example below (if you were to switch to `13.5.0.2`):
- Go to your git folder, pull and checkout to latest version as in example below (if you were to switch to `13.6.0.2`):

``` bash
cd ~/git/cardano-db-sync
git pull
git checkout 13.5.0.2
git checkout 13.6.0.2
```

- If going through major version update (eg: 13.x.x.x to 14.x.x.x), you might need to [rebuild and resync db from scratch](#prepare-db-for-sync), you may still follow the section to restore using snapshot to save some time (as long as you use a compatible snapshot).
Expand Down
6 changes: 3 additions & 3 deletions docs/Build/grest-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

## [1.3.0] - For all networks.

This release adds support for cardano db sync 13.6.0.1, alongwith underlying components supporting Conway HF. The major chunk of work for this release is behind the scenes, with minor value additions to input/output schema.
This release adds support for cardano db sync 13.6.0.2, alongwith underlying components supporting Conway HF. The major chunk of work for this release is behind the scenes, with minor value additions to input/output schema.

## New endpoints added:
- None

### Data Input/Output Changes:
- Input - `/tx_info` - Fix for `_bytecode` flag set to false not setting all byte fields to null [#306]
- Input - `/tx_info` - `_scripts` flag set to false will no longer suppress `reference_inputs`, `collateral_inputs` or `collateral_outputs` [#306]
- Input - `/block_tx_info` and `/tx_info` - Fix for `_bytecode` flag set to false not setting all byte fields to null [#306]
- Input - `/block_tx_info` and `/tx_info` - `_scripts` flag set to false will no longer suppress `reference_inputs`, `collateral_inputs` or `collateral_outputs` [#306]
- Output - `/proposal_voting_summary` - Add new fields `drep_abstain_votes_cast`, `pool_abstain_votes_cast` and `committee_abstain_votes_cast` [#303]
- Output - `/drep_info`, `/drep_metadata` - Rename `url` to `meta_url` and `hash` to `meta_hash` , keeping it consistent with other endpoints [#306]
- Output - `/tx_cbor` - Add new fields `block_hash`, `block_height`, `epoch_no`, `absolute_slot`, `tx_timestamp` [#306]
Expand Down
4 changes: 2 additions & 2 deletions scripts/cnode-helper-scripts/guild-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ download_cnodebins() {
rm -f caddress.tar.gz
[[ -f cardano-address ]] || err_exit " cardano-address archive downloaded but binary (cardano-address) not found after extracting package!"
if [[ "${SKIP_DBSYNC_DOWNLOAD}" == "N" ]]; then
echo -e "\n Downloading Cardano DB Sync 13.6.0.1 archive from GitHub.."
curl -m 200 -sfL https://github.com/IntersectMBO/cardano-db-sync/releases/download/13.6.0.1/cardano-db-sync-13.6.0.1-linux.tar.gz -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync from release artefacts on GitHub!"
echo -e "\n Downloading Cardano DB Sync 13.6.0.2 archive from GitHub.."
curl -m 200 -sfL https://github.com/IntersectMBO/cardano-db-sync/releases/download/13.6.0.2/cardano-db-sync-13.6.0.2-linux.tar.gz -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync from release artefacts on GitHub!"
#curl -m 200 -sfL "https://share.koios.rest/api/public/dl/xFdZDfM4/bin/cardano-db-sync-13.5.0.1-linux.tar.gz" -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync from release artefacts on GitHub!"
tar zxf cnodedbsync.tar.gz --strip-components 1 ./cardano-db-sync &>/dev/null
[[ -f cardano-db-sync ]] || err_exit " cardano-db-sync archive downloaded but binary (cardano-db-sync) not found after extracting package!"
Expand Down

0 comments on commit 3360a8c

Please sign in to comment.