From 3360a8c1162173763d4025e207a802bf8f3c0ba0 Mon Sep 17 00:00:00 2001 From: Ola Date: Sat, 23 Nov 2024 09:23:49 +0100 Subject: [PATCH] bump dbsync to 13.6.0.2 --- docs/Build/dbsync.md | 6 +++--- docs/Build/grest-changelog.md | 6 +++--- scripts/cnode-helper-scripts/guild-deploy.sh | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/Build/dbsync.md b/docs/Build/dbsync.md index 771ced17f..dd1163568 100644 --- a/docs/Build/dbsync.md +++ b/docs/Build/dbsync.md @@ -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 @@ -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). diff --git a/docs/Build/grest-changelog.md b/docs/Build/grest-changelog.md index 97e7ab1a1..74355e987 100644 --- a/docs/Build/grest-changelog.md +++ b/docs/Build/grest-changelog.md @@ -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] diff --git a/scripts/cnode-helper-scripts/guild-deploy.sh b/scripts/cnode-helper-scripts/guild-deploy.sh index 28dd5e853..cde60ad34 100755 --- a/scripts/cnode-helper-scripts/guild-deploy.sh +++ b/scripts/cnode-helper-scripts/guild-deploy.sh @@ -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!"