Skip to content

Commit

Permalink
Bump dbsync version and config options
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Apr 19, 2024
1 parent 7a8fb4b commit 7a7a443
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 8 deletions.
21 changes: 21 additions & 0 deletions files/configs/guild/db-sync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
21 changes: 21 additions & 0 deletions files/configs/mainnet/db-sync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
21 changes: 21 additions & 0 deletions files/configs/preprod/db-sync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
21 changes: 21 additions & 0 deletions files/configs/preview/db-sync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
21 changes: 21 additions & 0 deletions files/configs/sanchonet/db-sync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
16 changes: 8 additions & 8 deletions scripts/cnode-helper-scripts/guild-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.7.3"
REPO="https://github.com/${G_ACCOUNT}/guild-operators"
REPO_RAW="https://raw.githubusercontent.com/${G_ACCOUNT}/guild-operators"
URL_RAW="${REPO_RAW}/${BRANCH}"
Expand Down Expand Up @@ -340,7 +340,7 @@ build_libblst() {
[[ ! -d "./blst" ]] && git clone https://github.com/supranational/blst &>/dev/null
pushd blst >/dev/null || err_exit
git fetch >/dev/null 2>&1
[[ -z "${BLST_REF}" ]] && BLST_REF="v0.3.11"
[[ -z "${BLST_REF}" ]] && BLST_REF="v0.3.10"
git checkout ${BLST_REF} &>/dev/null
./build.sh >/dev/null 2>&1
cat <<-EOF >libblst.pc
Expand Down Expand Up @@ -371,19 +371,19 @@ download_cnodebins() {
pushd "${HOME}"/tmp >/dev/null || err_exit
echo -e "\n Downloading Cardano Node archive created from GitHub.."
rm -f cardano-node cardano-address
curl -m 200 -sfL https://github.com/intersectmbo/cardano-node/releases/download/${CARDANO_NODE_VERSION}/cardano-node-${CARDANO_NODE_VERSION}-linux.tar.gz -o cnode.tar.gz || err_exit " Could not download cardano-node release ${CARDANO_NODE_VERSION} from GitHub!"
tar zxf cnode.tar.gz --strip-components 2 ./bin/cardano-node ./bin/cardano-cli ./bin/cardano-submit-api ./bin/bech32 &>/dev/null
curl -m 200 -sfL https://github.com/intersectmbo/cardano-node/releases/download/8.7.3/cardano-node-8.7.3-linux.tar.gz -o cnode.tar.gz || err_exit " Could not download cardano-node release 8.7.3 from GitHub!"
tar zxf cnode.tar.gz ./cardano-node ./cardano-cli ./cardano-submit-api ./bech32 &>/dev/null
rm -f cnode.tar.gz
[[ -f cardano-node ]] || err_exit " cardano-node archive downloaded but binary (cardano-node) not found after extracting package!"
echo -e "\n Downloading Github release package for Cardano Wallet"
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
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!"
tar zxf cnodedbsync.tar.gz --strip-components 1 ./cardano-db-sync &>/dev/null
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 ./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
mv -f -t "${HOME}"/.local/bin cardano-db-sync
Expand Down

0 comments on commit 7a7a443

Please sign in to comment.