From e7755680d2c0d2da0c083faa3dc54ea80a0c014d Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Thu, 18 Apr 2024 16:26:05 +1000 Subject: [PATCH] Bump node and dbsync version and config options --- files/configs/guild/db-sync-config.json | 21 ++++++++++++++++++++ files/configs/mainnet/db-sync-config.json | 21 ++++++++++++++++++++ files/configs/preprod/db-sync-config.json | 21 ++++++++++++++++++++ files/configs/preview/db-sync-config.json | 21 ++++++++++++++++++++ files/configs/sanchonet/db-sync-config.json | 21 ++++++++++++++++++++ scripts/cnode-helper-scripts/guild-deploy.sh | 6 +++--- 6 files changed, 108 insertions(+), 3 deletions(-) diff --git a/files/configs/guild/db-sync-config.json b/files/configs/guild/db-sync-config.json index cd0ab0c72..f4eb590fc 100644 --- a/files/configs/guild/db-sync-config.json +++ b/files/configs/guild/db-sync-config.json @@ -14,6 +14,27 @@ "/opt/cardano/cnode/logs/dbsync.json" ] ], + "insert_options": { + "tx_out": { + "value": "consumed" + }, + "ledger": "enable", + "shelley": { + "enable": true + }, + "multi_asset": { + "enable": true + }, + "metadata": { + "enable": true + }, + "plutus": { + "enable": true + }, + "governance": "enable", + "offchain_pool_data": "enable", + "json_type": "text" + }, "minSeverity": "Info", "options": { "cfokey": { diff --git a/files/configs/mainnet/db-sync-config.json b/files/configs/mainnet/db-sync-config.json index c9eda7c0b..74d16e5bf 100644 --- a/files/configs/mainnet/db-sync-config.json +++ b/files/configs/mainnet/db-sync-config.json @@ -14,6 +14,27 @@ "/opt/cardano/cnode/logs/dbsync.json" ] ], + "insert_options": { + "tx_out": { + "value": "consumed" + }, + "ledger": "enable", + "shelley": { + "enable": true + }, + "multi_asset": { + "enable": true + }, + "metadata": { + "enable": true + }, + "plutus": { + "enable": true + }, + "governance": "enable", + "offchain_pool_data": "enable", + "json_type": "text" + }, "minSeverity": "Info", "options": { "cfokey": { diff --git a/files/configs/preprod/db-sync-config.json b/files/configs/preprod/db-sync-config.json index 77b77268e..4868b1dd6 100644 --- a/files/configs/preprod/db-sync-config.json +++ b/files/configs/preprod/db-sync-config.json @@ -14,6 +14,27 @@ "/opt/cardano/cnode/logs/dbsync.json" ] ], + "insert_options": { + "tx_out": { + "value": "consumed" + }, + "ledger": "enable", + "shelley": { + "enable": true + }, + "multi_asset": { + "enable": true + }, + "metadata": { + "enable": true + }, + "plutus": { + "enable": true + }, + "governance": "enable", + "offchain_pool_data": "enable", + "json_type": "text" + }, "minSeverity": "Info", "options": { "cfokey": { diff --git a/files/configs/preview/db-sync-config.json b/files/configs/preview/db-sync-config.json index 41845e9da..abaee2067 100644 --- a/files/configs/preview/db-sync-config.json +++ b/files/configs/preview/db-sync-config.json @@ -14,6 +14,27 @@ "/opt/cardano/cnode/logs/dbsync.json" ] ], + "insert_options": { + "tx_out": { + "value": "consumed" + }, + "ledger": "enable", + "shelley": { + "enable": true + }, + "multi_asset": { + "enable": true + }, + "metadata": { + "enable": true + }, + "plutus": { + "enable": true + }, + "governance": "enable", + "offchain_pool_data": "enable", + "json_type": "text" + }, "minSeverity": "Info", "options": { "cfokey": { diff --git a/files/configs/sanchonet/db-sync-config.json b/files/configs/sanchonet/db-sync-config.json index 75bef3626..460ac4e40 100644 --- a/files/configs/sanchonet/db-sync-config.json +++ b/files/configs/sanchonet/db-sync-config.json @@ -14,6 +14,27 @@ "/opt/cardano/cnode/logs/dbsync.json" ] ], + "insert_options": { + "tx_out": { + "value": "consumed" + }, + "ledger": "enable", + "shelley": { + "enable": true + }, + "multi_asset": { + "enable": true + }, + "metadata": { + "enable": true + }, + "plutus": { + "enable": true + }, + "governance": "enable", + "offchain_pool_data": "enable", + "json_type": "text" + }, "minSeverity": "Info", "options": { "cfokey": { diff --git a/scripts/cnode-helper-scripts/guild-deploy.sh b/scripts/cnode-helper-scripts/guild-deploy.sh index 217adbb56..03f386eea 100755 --- a/scripts/cnode-helper-scripts/guild-deploy.sh +++ b/scripts/cnode-helper-scripts/guild-deploy.sh @@ -109,7 +109,7 @@ set_defaults() { [[ "${SUDO}" = 'Y' && $(id -u) -eq 0 ]] && err_exit "Please run as non-root user." CNODE_HOME="${CNODE_PATH}/${CNODE_NAME}" CNODE_VNAME=$(echo "$CNODE_NAME" | awk '{print toupper($0)}') - CARDANO_NODE_VERSION="8.9.0" + CARDANO_NODE_VERSION="8.9.2" REPO="https://github.com/${G_ACCOUNT}/guild-operators" REPO_RAW="https://raw.githubusercontent.com/${G_ACCOUNT}/guild-operators" URL_RAW="${REPO_RAW}/${BRANCH}" @@ -379,10 +379,10 @@ download_cnodebins() { curl -m 200 -sfL https://github.com/intersectmbo/cardano-addresses/releases/download/3.12.0/cardano-addresses-3.12.0-linux64.tar.gz -o caddress.tar.gz || err_exit " Could not download cardano-wallet's latest release archive from GitHub!" tar zxf caddress.tar.gz --strip-components 1 bin/cardano-address &>/dev/null rm -f caddress.tar.gz - [[ -f cardano-address ]] || err_exit " cardano-address archive downloaded but binary (cardano-address) not found after extracting package!" + [[ -f cardano-address ]] || err_exit " cardano-address archive downloaded but binary (bin/cardano-address) not found after extracting package!" if [[ "${SKIP_DBSYNC_DOWNLOAD}" == "N" ]]; then echo -e "\n Downloading Cardano DB Sync archive created from GitHub.." - curl -m 200 -sfL https://github.com/intersectmbo/cardano-db-sync/releases/download/sancho-4.1.0/cardano-db-sync-13.2.0.1-linux.tar.gz -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.2.0.0 from GitHub!" + curl -m 200 -sfL https://github.com/IntersectMBO/cardano-db-sync/releases/download/sancho-4-2-1/cardano-db-sync-13.2.0.1-linux.tar.gz -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.2.0.0 from 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!" rm -f cnodedbsync.tar.gz