From 9c1ed680635f121e700b62132b8d9ca69f38d738 Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Thu, 15 Aug 2024 11:28:50 +1000 Subject: [PATCH 01/23] Add a note regarding snapshots for dbsync --- docs/Build/dbsync.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Build/dbsync.md b/docs/Build/dbsync.md index 254ae3b03..c795ca868 100644 --- a/docs/Build/dbsync.md +++ b/docs/Build/dbsync.md @@ -60,7 +60,7 @@ ln -s ~/git/cardano-db-sync/schema $CNODE_HOME/guild-db/schema #### Restore using Snapshot -If you're running a mainnet/preview/preprod instance of dbsync, you might want to consider use of dbsync snapshots as documented [here](https://github.com/intersectmbo/cardano-db-sync/blob/master/doc/state-snapshot.md). The snapshot files as of recent epoch are available via links in [release notes](https://github.com/intersectmbo/cardano-db-sync/releases). +If you're running a mainnet/preview/preprod instance of dbsync, you might want to consider use of dbsync snapshots as documented [here](https://github.com/intersectmbo/cardano-db-sync/blob/master/doc/state-snapshot.md). The snapshot files from IO for their default configs as of recent epoch are available via links in [release notes](https://github.com/intersectmbo/cardano-db-sync/releases). Note that the snapshots should only be used pertaining to their specific configs, if using configs from Koios - you'd want to look at snapshots [here](https://share.koios.rest/share/xFdZDfM4/dbsync/) instead. At high-level, this would involve steps as below (read and update paths as per your environment): From 1bc41b7487bcddc7c4e1e7dd268d9c0b63bbb205 Mon Sep 17 00:00:00 2001 From: illuminatus Date: Fri, 16 Aug 2024 16:16:52 -0700 Subject: [PATCH 02/23] Update env to set KOIOS_API for sanchonet (#1806) ## Description Sets KOIOS_API varaible. ## Motivation and context KOIOS has an API for sanchonet (sancho) it is just not being set in the case statements. ## Which issue it fixes? Closes #1805 --- scripts/cnode-helper-scripts/env | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/cnode-helper-scripts/env b/scripts/cnode-helper-scripts/env index 0054212de..3080ae2ff 100644 --- a/scripts/cnode-helper-scripts/env +++ b/scripts/cnode-helper-scripts/env @@ -1194,7 +1194,8 @@ case ${NWMAGIC} in [[ -z ${KOIOS_API} ]] && KOIOS_API="https://preview.koios.rest/api/v1";; 4) NETWORK_NAME="Sanchonet" - SHELLEY_TRANS_EPOCH=0;; + SHELLEY_TRANS_EPOCH=0 + [[ -z ${KOIOS_API} ]] && KOIOS_API="https://sancho.koios.rest/api/v1";; *) NETWORK_NAME="Custom" [[ -z ${SHELLEY_TRANS_EPOCH} ]] && SHELLEY_TRANS_EPOCH=0 From 71ec017b495b0a02828e37be35aaeed88df1c0d5 Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Sat, 24 Aug 2024 15:04:28 +1000 Subject: [PATCH 03/23] Update grest changelog --- docs/Build/grest-changelog.md | 55 +++++++++++++++++++++ scripts/grest-helper-scripts/setup-grest.sh | 2 +- 2 files changed, 56 insertions(+), 1 deletion(-) diff --git a/docs/Build/grest-changelog.md b/docs/Build/grest-changelog.md index 5c2d71468..154ca7b41 100644 --- a/docs/Build/grest-changelog.md +++ b/docs/Build/grest-changelog.md @@ -1,5 +1,60 @@ # Koios gRest Changelog +## [1.2.0a] - For all networks. + +This release starts providing Conway support providing 14 new endpoints - primarily focusing on new governance data. Also, based on community requests/feedbacks - it introduces a few breaking changes for `tx_info` and `block_tx_info` endpoints. Please go through the changelogs below + +### New endpoints added: +- `/tx_cbor` - Raw transaction CBOR against a transaction [#298] +- `/drep_epoch_summary` - Summary of voting power and DRep count for each epoch [#298] +- `/drep_list` - List of all active delegated representatives (DReps) [#298] +- `/drep_info` - Get detailed information about requested delegated representatives (DReps) [#298] +- `/drep_metadata` - List metadata for requested delegated representatives (DReps) [#298] +- `/drep_updates` - List of updates for requested (or all) delegated representatives (DReps) [#298] +- `/drep_votes` - List of all votes casted by requested delegated representative (DRep) [#298] +- `/drep_delegators` - List of all delegators to requested delegated representative (DRep) [#298] +- `/committee_info` - Information about active committee and its members [#298] +- `/committee_votes` - List of all votes casted by given committee member or collective [#298] +- `/proposal_list` - List of all governance proposals [#298] +- `/voter_proposal_list` - List of all governance proposals for specified DRep, SPO or Committee credential [#298] +- `/proposal_votes` - List of all votes cast on specified governance action [#298] +- `/pool_votes` - List of all votes casted by a pool [#298] + +### Data Input/Output Changes: + +- Input - `/block_tx_info`, `/tx_info` - `collateral_tx_out` -> `asset_list` - Outputs for collateral tx out are never created on-chain and thus, cannot be queried from `ma_tx_out`. Instead a rough description of assets involved are saved , which is now returned as info from ledger. This is returned as-is from dbsync and does not adhere to `asset_list` schema we use in other endpoints. [#298] +- Input - `/tx_info` , `/block_tx_info` - These endpoints now require you to specify what all information you'd like to retrieve from a transaction, providing flags `_inputs` , `_metadata`, `_assets` , `_withdrawals`, `_certs`, `_scripts`, `_bytecode`, `_governance` [#298] +- Output - `/policy_asset_mints` , `/policy_asset_info`, `/asset_info` - Will return latest mint transaction that has metadata (instead of latest mint transaction) details (excluding burn transactions) [#298] +- Output - `/account_info` , `/pool_info` , `/pool_list` - Add `deposit` field to output for deposit associated with registration [#298] +- Output - `/account_info` - Add `delegated_drep` field to the output [#298] +- Output - `/block_tx_info` , `/tx_info` - Add `treasury_deposit`, `voting_procedures` and `proposal_procedures` to the output [#298] +- Output - `/epoch_params` - Add various fields to `epoch_params` as per Conway protocol parameters [#298] +- Output - `/pool_metadata`, `/pool_relays` - Remove `pool_status` field from output (it's already listed in pool_info and list) [#298] +- Output - `/pool_updates` - owners is now a JSONB field instead of JSONB array [#298] + +### Deprecations: +- None + +### Retirements: +- None + +### Chores: + +- Remove unused info from `asset_info_cache` - `first_mint_tx_id` , `first_mint_keys` , `last_mint_keys` are not used/required [#286] +- Add `last_mint_meta_tx_id` field to `asset_info_cache` - to return latest asset that does have metadata [#286] +- Reduce redundant cache information for pool stake as we now only retain 3 epochs in pool_active_stake_cache as the rest is already in `pool_history_cache` [#289] +- Retire v0 SQL files (endpoints were already removed) from repository [#286] +- Overwrite next epoch once on every execution (this is to avoid nonce mismatch if calculated too early from node) [#286] +- Reduce reliance on pool_info_cache where possible to query live metadata [#298] +- Make use of `pool_stat` instead of `epoch_stake` for `pool_history_cache` [#294] +- `instant_reward` table in dbsync moved to `reward_rest` +- `ada_pots` : `deposit` now split into three different types of deposits + +[#298]: https://github.com/cardano-community/koios-artifacts/pull/298 +[#289]: https://github.com/cardano-community/koios-artifacts/pull/289 +[#286]: https://github.com/cardano-community/koios-artifacts/pull/286 +[#294]: https://github.com/cardano-community/koios-artifacts/pull/294 + ## [1.1.2] - For all networks. This release is minor bugfix for data consistency changes behind the scenes. It has no impact to any of the API endpoints. diff --git a/scripts/grest-helper-scripts/setup-grest.sh b/scripts/grest-helper-scripts/setup-grest.sh index a093bf104..e5bc42e53 100755 --- a/scripts/grest-helper-scripts/setup-grest.sh +++ b/scripts/grest-helper-scripts/setup-grest.sh @@ -325,7 +325,7 @@ SGVERSION=v1.2.0a [[ ! -d "pg_bech32" ]] && git clone https://github.com/cardano-community/pg_bech32 >/dev/null cd pg_bech32 || err_exit git pull >/dev/null || err_exit - make >/dev/null + make clean && make >/dev/null sudo make install >/dev/null psql -qtAX -d ${PGDATABASE} -c "DROP EXTENSION IF EXISTS pg_bech32;CREATE EXTENSION pg_bech32;" >/dev/null } From 9f801fc5ed545e390e8a7c84e8d2f84b1405fd44 Mon Sep 17 00:00:00 2001 From: Ola Date: Sat, 24 Aug 2024 15:17:55 +0200 Subject: [PATCH 04/23] Make sure all functions execute regardless of individual return code --- scripts/grest-helper-scripts/setup-grest.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/grest-helper-scripts/setup-grest.sh b/scripts/grest-helper-scripts/setup-grest.sh index e5bc42e53..428e01b54 100755 --- a/scripts/grest-helper-scripts/setup-grest.sh +++ b/scripts/grest-helper-scripts/setup-grest.sh @@ -683,12 +683,12 @@ SGVERSION=v1.2.0a set_environment_variables parse_args common_update - [[ "${INSTALL_POSTGREST}" == "Y" ]] && setup_db_basics && deploy_postgrest - [[ "${INSTALL_HAPROXY}" == "Y" ]] && deploy_haproxy - [[ "${INSTALL_MONITORING_AGENTS}" == "Y" ]] && deploy_monitoring_agents - [[ "${OVERWRITE_CONFIG}" == "Y" ]] && deploy_configs - [[ "${OVERWRITE_SYSTEMD}" == "Y" ]] && deploy_systemd - [[ "${RESET_GREST}" == "Y" ]] && remove_all_grest_cron_jobs && reset_grest && deploy_b32_ext - [[ "${DB_QRY_UPDATES}" == "Y" ]] && remove_all_grest_cron_jobs && setup_db_basics && deploy_query_updates && update_grest_version + if [[ "${INSTALL_POSTGREST}" == "Y" ]]; then setup_db_basics; deploy_postgrest; fi + if [[ "${INSTALL_HAPROXY}" == "Y" ]]; then deploy_haproxy; fi + if [[ "${INSTALL_MONITORING_AGENTS}" == "Y" ]]; then deploy_monitoring_agents; fi + if [[ "${OVERWRITE_CONFIG}" == "Y" ]]; then deploy_configs; fi + if [[ "${OVERWRITE_SYSTEMD}" == "Y" ]]; then deploy_systemd; fi + if [[ "${RESET_GREST}" == "Y" ]]; then remove_all_grest_cron_jobs; reset_grest; deploy_b32_ext; fi + if [[ "${DB_QRY_UPDATES}" == "Y" ]]; then remove_all_grest_cron_jobs; setup_db_basics; deploy_query_updates; update_grest_version; fi pushd -0 >/dev/null || err_exit dirs -c From 73bebe581fbfc63839bfcbcfdde0419ab3e66f54 Mon Sep 17 00:00:00 2001 From: Ola Date: Sat, 24 Aug 2024 15:49:51 +0200 Subject: [PATCH 05/23] typo fix --- scripts/grest-helper-scripts/setup-grest.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/grest-helper-scripts/setup-grest.sh b/scripts/grest-helper-scripts/setup-grest.sh index 428e01b54..5583bf98a 100755 --- a/scripts/grest-helper-scripts/setup-grest.sh +++ b/scripts/grest-helper-scripts/setup-grest.sh @@ -306,10 +306,10 @@ SGVERSION=v1.2.0a pkg_installer="dnf" pkg_list="make gcc gcc-c++ autoconf autoconf-archive automake libtool pkgconfig" fi - sudo ${pkg_installer} -u install ${pkg_list} >/dev/null || err_exit "'sudo ${pkg_installer} -y install ${pkg_list}' failed!" - sudo ${pkg_installer} -u upgrade ${pkg_list} >/dev/null || err_exit "'sudo ${pkg_installer} -y upgrade ${pkg_list}' failed!" + sudo ${pkg_installer} -y install ${pkg_list} >/dev/null || err_exit "'sudo ${pkg_installer} -y install ${pkg_list}' failed!" + sudo ${pkg_installer} -y upgrade ${pkg_list} >/dev/null || err_exit "'sudo ${pkg_installer} -y upgrade ${pkg_list}' failed!" [[ ! -d "libbech32" ]] && git clone https://github.com/whitslack/libbech32 >/dev/null - pushd libbech32 || err_exit + pushd libbech32 || err_exit git pull >/dev/null || err_exit mkdir -p build-aux/m4 curl -sf https://raw.githubusercontent.com/NixOS/patchelf/master/m4/ax_cxx_compile_stdcxx.m4 -o build-aux/m4/ax_cxx_compile_stdcx.m4 From ee8b665e1e1966bd642012c79e061c78af15a6a5 Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Mon, 26 Aug 2024 23:09:52 +1000 Subject: [PATCH 06/23] Bump koios branch reference --- scripts/grest-helper-scripts/setup-grest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/grest-helper-scripts/setup-grest.sh b/scripts/grest-helper-scripts/setup-grest.sh index 5583bf98a..3552e6aa3 100755 --- a/scripts/grest-helper-scripts/setup-grest.sh +++ b/scripts/grest-helper-scripts/setup-grest.sh @@ -16,7 +16,7 @@ # Do NOT modify code below # ###################################### -SGVERSION=v1.2.0a +SGVERSION=v1.2.0b ######## Functions ######## usage() { From 85802bb75e773cd3722cb6cfae06f9250f90239a Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:38:57 +1000 Subject: [PATCH 07/23] Add pool_stats to dbsync config and update dbsync binary download link --- files/configs/guild/db-sync-config.json | 1 + files/configs/mainnet/db-sync-config.json | 1 + files/configs/preprod/db-sync-config.json | 1 + files/configs/preview/db-sync-config.json | 1 + files/configs/sanchonet/db-sync-config.json | 1 + scripts/cnode-helper-scripts/guild-deploy.sh | 5 +++-- 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/files/configs/guild/db-sync-config.json b/files/configs/guild/db-sync-config.json index 742b14985..4ca1b32ae 100644 --- a/files/configs/guild/db-sync-config.json +++ b/files/configs/guild/db-sync-config.json @@ -36,6 +36,7 @@ "json_type": "text", "offchain_pool_data": "enable", "pool_stat": "enable", + "pool_stats": "enable", "tx_cbor": "enable" }, "minSeverity": "Info", diff --git a/files/configs/mainnet/db-sync-config.json b/files/configs/mainnet/db-sync-config.json index e160033a6..9193d6bc6 100644 --- a/files/configs/mainnet/db-sync-config.json +++ b/files/configs/mainnet/db-sync-config.json @@ -36,6 +36,7 @@ "json_type": "text", "offchain_pool_data": "enable", "pool_stat": "enable", + "pool_stats": "enable", "tx_cbor": "enable" }, "minSeverity": "Info", diff --git a/files/configs/preprod/db-sync-config.json b/files/configs/preprod/db-sync-config.json index 7ebc4aedb..e018289a4 100644 --- a/files/configs/preprod/db-sync-config.json +++ b/files/configs/preprod/db-sync-config.json @@ -36,6 +36,7 @@ "json_type": "text", "offchain_pool_data": "enable", "pool_stat": "enable", + "pool_stats": "enable", "tx_cbor": "enable" }, "minSeverity": "Info", diff --git a/files/configs/preview/db-sync-config.json b/files/configs/preview/db-sync-config.json index b87c788f5..51d0ab3ff 100644 --- a/files/configs/preview/db-sync-config.json +++ b/files/configs/preview/db-sync-config.json @@ -36,6 +36,7 @@ "json_type": "text", "offchain_pool_data": "enable", "pool_stat": "enable", + "pool_stats": "enable", "tx_cbor": "enable" }, "minSeverity": "Info", diff --git a/files/configs/sanchonet/db-sync-config.json b/files/configs/sanchonet/db-sync-config.json index f9e1eca07..ad5d76ea5 100644 --- a/files/configs/sanchonet/db-sync-config.json +++ b/files/configs/sanchonet/db-sync-config.json @@ -36,6 +36,7 @@ "json_type": "text", "offchain_pool_data": "enable", "pool_stat": "enable", + "pool_stats": "enable", "tx_cbor": "enable" }, "minSeverity": "Info", diff --git a/scripts/cnode-helper-scripts/guild-deploy.sh b/scripts/cnode-helper-scripts/guild-deploy.sh index 1762cb26f..2e7bd75ee 100755 --- a/scripts/cnode-helper-scripts/guild-deploy.sh +++ b/scripts/cnode-helper-scripts/guild-deploy.sh @@ -407,8 +407,9 @@ download_cnodebins() { [[ -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 archive created from GitHub.." - - curl -m 200 -sfL https://github.com/IntersectMBO/cardano-db-sync/releases/download/13.4.0.0/cardano-db-sync-13.4.0.0-linux.tar.gz -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.3.0.0 from GitHub!" + # Tag 13.4.0.2 did not have a release - hence, using binary from share.koios.rest + #curl -m 200 -sfL https://github.com/IntersectMBO/cardano-db-sync/releases/download/13.4.0.0/cardano-db-sync-13.4.0.0-linux.tar.gz -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.3.0.0 from GitHub!" + curl -m 200 -sfL "https://share.koios.rest/api/public/dl/xFdZDfM4%2Fbin%2Fcardano-db-sync-13.4.0.0-linux.tar.gz" -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.3.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 From 14c428132596c26e638c00dae0925a5992b7e436 Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Tue, 27 Aug 2024 21:17:36 +1000 Subject: [PATCH 08/23] Add set posix mode to env file --- scripts/cnode-helper-scripts/env | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/cnode-helper-scripts/env b/scripts/cnode-helper-scripts/env index 3080ae2ff..6f29a8a27 100644 --- a/scripts/cnode-helper-scripts/env +++ b/scripts/cnode-helper-scripts/env @@ -968,6 +968,7 @@ set_default_vars() { STANDOUT='\e[7m' BOLD='\e[1m' NC='\e[0m' + set -o posix } read_genesis() { From c8a265b2966f3d4be84da3a41ab4541356fb13db Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Wed, 28 Aug 2024 09:38:37 +1000 Subject: [PATCH 09/23] bump dbsync to 13.4.1.0 --- scripts/cnode-helper-scripts/guild-deploy.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/cnode-helper-scripts/guild-deploy.sh b/scripts/cnode-helper-scripts/guild-deploy.sh index 2e7bd75ee..3208884f6 100755 --- a/scripts/cnode-helper-scripts/guild-deploy.sh +++ b/scripts/cnode-helper-scripts/guild-deploy.sh @@ -407,9 +407,8 @@ download_cnodebins() { [[ -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 archive created from GitHub.." - # Tag 13.4.0.2 did not have a release - hence, using binary from share.koios.rest - #curl -m 200 -sfL https://github.com/IntersectMBO/cardano-db-sync/releases/download/13.4.0.0/cardano-db-sync-13.4.0.0-linux.tar.gz -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.3.0.0 from GitHub!" - curl -m 200 -sfL "https://share.koios.rest/api/public/dl/xFdZDfM4%2Fbin%2Fcardano-db-sync-13.4.0.0-linux.tar.gz" -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.3.0.0 from GitHub!" + curl -m 200 -sfL https://github.com/IntersectMBO/cardano-db-sync/releases/download/13.4.1.0/cardano-db-sync-13.4.1.0-linux.tar.gz -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.3.0.0 from GitHub!" + #curl -m 200 -sfL "https://share.koios.rest/api/public/dl/xFdZDfM4%2Fbin%2Fcardano-db-sync-13.4.0.0-linux.tar.gz" -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.3.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 From c43258c6947ce50af34d72541e85b805f2ef1d74 Mon Sep 17 00:00:00 2001 From: Markus Date: Wed, 28 Aug 2024 23:20:36 +0200 Subject: [PATCH 10/23] mempool capacity override to config file (#1812) ## Description The existing CLI --mempool-capacity-override flag will be removed in upcoming node releases. set this configuration option in the configuration file instead with key MempoolCapacityBytesOverride. --- files/configs/guild/config.json | 2 ++ files/configs/mainnet/config.json | 2 ++ files/configs/preprod/config.json | 2 ++ files/configs/preview/config.json | 2 ++ files/configs/sanchonet/config.json | 2 ++ scripts/cnode-helper-scripts/cnode.sh | 2 -- 6 files changed, 10 insertions(+), 2 deletions(-) diff --git a/files/configs/guild/config.json b/files/configs/guild/config.json index 137ea8744..1adfc299b 100644 --- a/files/configs/guild/config.json +++ b/files/configs/guild/config.json @@ -12,6 +12,8 @@ "RequiresNetworkMagic": "RequiresMagic", "PBftSignatureThreshold": 1, "ShelleyGenesisFile": "/opt/cardano/cnode/files/shelley-genesis.json", + "SnapshotInterval": 1800, + "MempoolCapacityBytesOverride": 8388608, "EnableLogging": true, "EnableLogMetrics": false, "TargetNumberOfActivePeers": 10, diff --git a/files/configs/mainnet/config.json b/files/configs/mainnet/config.json index d2b1d2c1a..e3ebbc067 100644 --- a/files/configs/mainnet/config.json +++ b/files/configs/mainnet/config.json @@ -12,6 +12,8 @@ "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresNoMagic", "ShelleyGenesisFile": "/opt/cardano/cnode/files/shelley-genesis.json", + "SnapshotInterval": 86400, + "MempoolCapacityBytesOverride": 8388608, "EnableLogging": true, "EnableLogMetrics": false, "TargetNumberOfActivePeers": 20, diff --git a/files/configs/preprod/config.json b/files/configs/preprod/config.json index 1a5a27be2..cecb74bc8 100644 --- a/files/configs/preprod/config.json +++ b/files/configs/preprod/config.json @@ -11,6 +11,8 @@ "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresMagic", "ShelleyGenesisFile": "/opt/cardano/cnode/files/shelley-genesis.json", + "SnapshotInterval": 86400, + "MempoolCapacityBytesOverride": 8388608, "EnableLogging": true, "EnableLogMetrics": false, "TargetNumberOfActivePeers": 20, diff --git a/files/configs/preview/config.json b/files/configs/preview/config.json index 70e9fb338..e5b3950eb 100644 --- a/files/configs/preview/config.json +++ b/files/configs/preview/config.json @@ -13,6 +13,8 @@ "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresMagic", "ShelleyGenesisFile": "/opt/cardano/cnode/files/shelley-genesis.json", + "SnapshotInterval": 43200, + "MempoolCapacityBytesOverride": 8388608, "EnableLogging": true, "EnableLogMetrics": false, "TargetNumberOfActivePeers": 20, diff --git a/files/configs/sanchonet/config.json b/files/configs/sanchonet/config.json index 4d6643164..b0b14483f 100644 --- a/files/configs/sanchonet/config.json +++ b/files/configs/sanchonet/config.json @@ -13,6 +13,8 @@ "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresMagic", "ShelleyGenesisFile": "/opt/cardano/cnode/files/shelley-genesis.json", + "SnapshotInterval": 43200, + "MempoolCapacityBytesOverride": 8388608, "EnableLogging": true, "EnableLogMetrics": false, "TargetNumberOfActivePeers": 20, diff --git a/scripts/cnode-helper-scripts/cnode.sh b/scripts/cnode-helper-scripts/cnode.sh index 19f179a1a..c7767930a 100755 --- a/scripts/cnode-helper-scripts/cnode.sh +++ b/scripts/cnode-helper-scripts/cnode.sh @@ -8,7 +8,6 @@ ###################################### #CPU_CORES=4 # Number of CPU cores cardano-node process has access to (please don't set higher than physical core count, recommended to set atleast to 4) -#MEMPOOL_BYTES=8388608 # Override mempool in bytes (Default: Do not override) #CNODE_LISTEN_IP4=0.0.0.0 # IP to use for listening (only applicable to Node Connection Port) for IPv4 #CNODE_LISTEN_IP6=:: # IP to use for listening (only applicable to Node Connection Port) for IPv6 @@ -42,7 +41,6 @@ set_defaults() { host_addr=() [[ ${IP_VERSION} = "4" || ${IP_VERSION} = "mix" ]] && host_addr+=("--host-addr" "${CNODE_LISTEN_IP4}") [[ ${IP_VERSION} = "6" || ${IP_VERSION} = "mix" ]] && host_addr+=("--host-ipv6-addr" "${CNODE_LISTEN_IP6}") - [[ -z ${MEMPOOL_BYTES} ]] && MEMPOOL_OVERRIDE="" || MEMPOOL_OVERRIDE="--mempool-capacity-override ${MEMPOOL_BYTES}" } pre_startup_sanity() { From b090fbe6c87dd82e766f767906c1729b753c0fe9 Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Thu, 29 Aug 2024 09:38:04 +1000 Subject: [PATCH 11/23] bump dbsync to 13.5.0.0 --- scripts/cnode-helper-scripts/guild-deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cnode-helper-scripts/guild-deploy.sh b/scripts/cnode-helper-scripts/guild-deploy.sh index 3208884f6..2adbd73cc 100755 --- a/scripts/cnode-helper-scripts/guild-deploy.sh +++ b/scripts/cnode-helper-scripts/guild-deploy.sh @@ -407,8 +407,8 @@ download_cnodebins() { [[ -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 archive created from GitHub.." - curl -m 200 -sfL https://github.com/IntersectMBO/cardano-db-sync/releases/download/13.4.1.0/cardano-db-sync-13.4.1.0-linux.tar.gz -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.3.0.0 from GitHub!" - #curl -m 200 -sfL "https://share.koios.rest/api/public/dl/xFdZDfM4%2Fbin%2Fcardano-db-sync-13.4.0.0-linux.tar.gz" -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.3.0.0 from GitHub!" + curl -m 200 -sfL https://github.com/IntersectMBO/cardano-db-sync/releases/download/13.5.0.0/cardano-db-sync-13.5.0.0-linux.tar.gz -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.5.0.0 from GitHub!" + #curl -m 200 -sfL "https://share.koios.rest/api/public/dl/xFdZDfM4%2Fbin%2Fcardano-db-sync-13.4.0.0-linux.tar.gz" -o cnodedbsync.tar.gz || err_exit " Could not download cardano-db-sync release 13.4.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 From 4571d385c9c329c00e274d4dcc942ad6e2091358 Mon Sep 17 00:00:00 2001 From: illuminatus Date: Wed, 28 Aug 2024 23:57:03 -0700 Subject: [PATCH 12/23] getProtocolParams use CNCLI if ENABLE_KOIOS=N (#1808) ## Description Disables KOIOS access from getProtocolParams if ENABLE_KOIOS is set to N. ## Motivation and context Found unexpected KOIOS API access when trying to completely disable KOIOS. I had set both ENABLE_KOIOS and USE_KOIOS_API to N, but still found cases where traffic was hitting KOIOS endpoints. ## Which issue it fixes? Closes #1807 ## How has this been tested? From inside a container using bash -x and capturing stderr to stdout and confirming the curl to cli_protocol_params API route no longer occurs when cncli.sh leaderlog is executed. Also using tcpdump to just examine traffic destined for the IP address of guild.koios.rest. --------- Co-authored-by: Ola [AHLNET] --- scripts/cnode-helper-scripts/cncli.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/cnode-helper-scripts/cncli.sh b/scripts/cnode-helper-scripts/cncli.sh index e3576c66e..bdec8094c 100755 --- a/scripts/cnode-helper-scripts/cncli.sh +++ b/scripts/cnode-helper-scripts/cncli.sh @@ -25,7 +25,6 @@ #CONFIRM_SLOT_CNT=600 # CNCLI validate: require at least these many slots to have passed before validating #CONFIRM_BLOCK_CNT=15 # CNCLI validate: require at least these many blocks on top of minted before validating #BATCH_AUTO_UPDATE=N # Set to Y to automatically update the script if a new version is available without user interaction -#USE_KOIOS_API=Y # Use Koios API in cncli leaderlog instead of local stake-snapshot query to reduce system resources. (default true) #CNCLI_PROM_PORT=12799 # Set Prometheus port for cncli block metrics available through metrics operation (default: 12799) ###################################### @@ -141,7 +140,6 @@ getConsensus() { } getKoiosData() { - [[ -z ${KOIOS_API} ]] && return 1 if ! stake_snapshot=$(curl -sSL -f -d _pool_bech32=${POOL_ID_BECH32} "${KOIOS_API}/pool_stake_snapshot" 2>&1); then echo "ERROR: Koios pool_stake_snapshot query failed: curl -sSL -f -d _pool_bech32=${POOL_ID_BECH32} ${KOIOS_API}/pool_stake_snapshot" return 1 @@ -210,7 +208,9 @@ cncliInit() { echo "sleeping for 10s and testing again..." sleep 10 done - + + test_koios + TMP_DIR="${TMP_DIR}/cncli" if ! mkdir -p "${TMP_DIR}" 2>/dev/null; then echo "ERROR: Failed to create directory for temporary files: ${TMP_DIR}"; exit 1; fi @@ -221,7 +221,6 @@ cncliInit() { [[ -z "${CNCLI_DIR}" ]] && CNCLI_DIR="${CNODE_HOME}/guild-db/cncli" if ! mkdir -p "${CNCLI_DIR}" 2>/dev/null; then echo "ERROR: Failed to create CNCLI DB directory: ${CNCLI_DIR}"; exit 1; fi CNCLI_DB="${CNCLI_DIR}/cncli.db" - [[ -z "${USE_KOIOS_API}" ]] && USE_KOIOS_API=Y [[ -z "${CNODE_HOST}" ]] && CNODE_HOST="127.0.0.1" [[ -z "${SLEEP_RATE}" ]] && SLEEP_RATE=60 [[ -z "${CONFIRM_SLOT_CNT}" ]] && CONFIRM_SLOT_CNT=600 @@ -289,7 +288,7 @@ cncliLeaderlog() { echo "Leaderlogs already calculated for epoch ${curr_epoch}, skipping!" else echo "Running leaderlogs for epoch ${curr_epoch}" - if [[ ${USE_KOIOS_API} = Y ]]; then + if [[ -n ${KOIOS_API} ]]; then getKoiosData || exit 1 else getLedgerData || exit 1 @@ -361,7 +360,7 @@ cncliLeaderlog() { else continue; fi fi echo "Running leaderlogs for next epoch[${next_epoch}]" - if [[ ${USE_KOIOS_API} = Y ]]; then + if [[ -n ${KOIOS_API} ]]; then if ! getKoiosData; then sleep 60; continue; fi # Sleep for 1 min before retrying to query koios again in case of error else if ! getLedgerData; then sleep 300; continue; fi # Sleep for 5 min before retrying to query stake snapshot in case of error From 2ada28b4c27b8b4ded013a6e4d7978f8fb4db664 Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Sat, 31 Aug 2024 10:25:02 +1000 Subject: [PATCH 13/23] Bump Koios release and update changelog --- docs/Build/grest-changelog.md | 30 ++++++++++++++++++++- files/configs/mainnet/config.json | 2 +- files/node-deps.json | 6 +++++ scripts/grest-helper-scripts/setup-grest.sh | 2 +- 4 files changed, 37 insertions(+), 3 deletions(-) diff --git a/docs/Build/grest-changelog.md b/docs/Build/grest-changelog.md index 154ca7b41..732b3be14 100644 --- a/docs/Build/grest-changelog.md +++ b/docs/Build/grest-changelog.md @@ -1,6 +1,34 @@ # Koios gRest Changelog -## [1.2.0a] - For all networks. +## [1.2.0] - For all networks. + +This is a finalised release that builds on `1.2.0a` to provide support for CIP-129 and add a summary of votes for given proposal. The changes accordingly are primarily only targetting Governance endpoints. This will be the version used for mainnet upgrade as well. Please go through the changelogs below + +### New endpoints added: +- `/proposal_voting_summary` - Get a summary of votes cast on specified governance action [#300] + +### Data Input/Output Changes: +- Input - `/commitee_votes` - Will require `_cc_hot_id` which will accept committee member hot key formatted in bech32 as per CIP-0005/129 [#300] +- Input - `/voter_proposal_list` - Will require `_voter_id` which will accept DRep/SPO/Committee member formatted in bech32 as per CIP-0005/129 [#300] +- Input - `/proposal_votes` - Will require `_proposal_id` which will accept government proposal ID formatted in bech32 as per CIP-129 [#300] +- Output - `/drep_metadata` , `/drep_updates`, - added column `has_script` which shows if given credential is a script hash [#300] +- Output - `/drep_votes` , `/proposal_list` , `/committee_info` - added column `proposal_id` to show proposal action ID in accordance with CIP-129 [#300] +- Output - `/proposal_votes` , - `voter` is renamed to `voter_id` and shows DRep/Pool/Committee member formatted in bech32 as per CIP-129 [#300] +- Output - Any references to drep in output columns is now assumed to be in CIP-129 format [#300] + +### Deprecations: +- None + +### Retirements: +- None + +### Chores: +- Change indexing for dreps from view to hex [#300] +- Extend utility functions for CIP-129 conversions from hex [#300] + +[#300]: https://github.com/cardano-community/koios-artifacts/pull/300 + +## [1.2.0a] - For non-mainnet networks. This release starts providing Conway support providing 14 new endpoints - primarily focusing on new governance data. Also, based on community requests/feedbacks - it introduces a few breaking changes for `tx_info` and `block_tx_info` endpoints. Please go through the changelogs below diff --git a/files/configs/mainnet/config.json b/files/configs/mainnet/config.json index e3ebbc067..6518a24d9 100644 --- a/files/configs/mainnet/config.json +++ b/files/configs/mainnet/config.json @@ -13,7 +13,7 @@ "RequiresNetworkMagic": "RequiresNoMagic", "ShelleyGenesisFile": "/opt/cardano/cnode/files/shelley-genesis.json", "SnapshotInterval": 86400, - "MempoolCapacityBytesOverride": 8388608, + "MempoolCapacityBytesOverride": 67108864, "EnableLogging": true, "EnableLogMetrics": false, "TargetNumberOfActivePeers": 20, diff --git a/files/node-deps.json b/files/node-deps.json index 0f22af8b0..aa79969ca 100644 --- a/files/node-deps.json +++ b/files/node-deps.json @@ -6,6 +6,12 @@ "sodium": "dbb48cce5429cb6585c9034f002568964f1ce567" }, "8.9.4": + { + "blst": "3dd0f804b1819e5d03fb22ca2e6fac105932043a", + "secp256k1": "v0.3.2", + "sodium": "dbb48cce5429cb6585c9034f002568964f1ce567" + }, + "9.1.0": { "blst": "3dd0f804b1819e5d03fb22ca2e6fac105932043a", "secp256k1": "v0.3.2", diff --git a/scripts/grest-helper-scripts/setup-grest.sh b/scripts/grest-helper-scripts/setup-grest.sh index 3552e6aa3..642500e11 100755 --- a/scripts/grest-helper-scripts/setup-grest.sh +++ b/scripts/grest-helper-scripts/setup-grest.sh @@ -16,7 +16,7 @@ # Do NOT modify code below # ###################################### -SGVERSION=v1.2.0b +SGVERSION=v1.2.0 ######## Functions ######## usage() { From 1ac2f3ac9a5ce4953e7745eaa879672543ebbc15 Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Sun, 1 Sep 2024 12:50:37 +1000 Subject: [PATCH 14/23] mithril.library: call to env should be in offline mode --- scripts/cnode-helper-scripts/mithril.library | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cnode-helper-scripts/mithril.library b/scripts/cnode-helper-scripts/mithril.library index fa8bca425..59bfdafd6 100644 --- a/scripts/cnode-helper-scripts/mithril.library +++ b/scripts/cnode-helper-scripts/mithril.library @@ -14,7 +14,7 @@ CI_MODE='N' # setting it to an incompatible version with the currently suported cardano-node # version. There is no need to source the environment file in CI mode. if [[ ${CI_MODE} == 'N' ]] ; then - . "$(dirname $0)"/env + . "$(dirname $0)"/env offline fi ############################# From 7558c748a32e49612b598c296ef9da030d1d5c68 Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Mon, 2 Sep 2024 11:09:24 +1000 Subject: [PATCH 15/23] Fix getmetrics script (function names --- scripts/grest-helper-scripts/getmetrics.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/grest-helper-scripts/getmetrics.sh b/scripts/grest-helper-scripts/getmetrics.sh index c188f9e99..7c760a6f1 100755 --- a/scripts/grest-helper-scripts/getmetrics.sh +++ b/scripts/grest-helper-scripts/getmetrics.sh @@ -28,7 +28,7 @@ exec 2>/dev/null [[ -z ${DBSYNC_PROM_PORT} ]] && DBSYNC_PROM_PORT=8080 [[ -z ${PGDATABASE} ]] && PGDATABASE=cexplorer -function get-metrics() { +function get_metrics() { shopt -s expand_aliases if [ -n "$SERVED" ]; then echo "Content-type: text/plain" # Tells the browser what kind of content to expect @@ -99,4 +99,4 @@ function get-metrics() { done } -get-metrics +get_metrics From 5531f8ab9202894278983bd5b01b4fa1a14d0ef3 Mon Sep 17 00:00:00 2001 From: illuminatus Date: Sun, 1 Sep 2024 21:14:25 -0700 Subject: [PATCH 16/23] [mithril] client script adjustments (#1813) mithril-client.sh changes - mithril-client.sh source env in offline mode - mithril-client.sh Help text parsed first from -h, or --help. - cnode.sh use -u when calling mithril-client.sh to avoid update checks in non gui mode Co-authored-by: RdLrT <3169068+rdlrt@users.noreply.github.com> --- scripts/cnode-helper-scripts/cnode.sh | 2 +- .../cnode-helper-scripts/mithril-client.sh | 20 ++++++++++++----- scripts/cnode-helper-scripts/mithril.library | 22 ++++++++++--------- 3 files changed, 28 insertions(+), 16 deletions(-) diff --git a/scripts/cnode-helper-scripts/cnode.sh b/scripts/cnode-helper-scripts/cnode.sh index c7767930a..f554f5d3a 100755 --- a/scripts/cnode-helper-scripts/cnode.sh +++ b/scripts/cnode-helper-scripts/cnode.sh @@ -63,7 +63,7 @@ mithril_snapshot_download() { if [[ ! -f "${MITHRIL_CLIENT}" ]] || [[ ! -e "${MITHRIL_CLIENT}" ]]; then echo "ERROR: Could not locate mithril-client.sh script or script is not executable. Skipping mithril cardano-db snapshot download!!" else - "${MITHRIL_CLIENT}" cardano-db download + "${MITHRIL_CLIENT}" -u cardano-db download fi } diff --git a/scripts/cnode-helper-scripts/mithril-client.sh b/scripts/cnode-helper-scripts/mithril-client.sh index 48c100938..705514d41 100755 --- a/scripts/cnode-helper-scripts/mithril-client.sh +++ b/scripts/cnode-helper-scripts/mithril-client.sh @@ -20,10 +20,11 @@ usage() { cat <<-EOF - Usage: $(basename "$0") [-u] [] + Usage: $(basename "$0") [-h] [-u] [] A script to run Cardano Mithril Client - -u Skip script update check overriding UPDATE_CHECK value in env (must be first argument to script) + [ -h | --help] Print this help + [ -u | --skip-update ] Skip script update check overriding UPDATE_CHECK value in env (must be first argument to script) Commands: environment Manage mithril environment file @@ -46,14 +47,25 @@ EOF } SKIP_UPDATE=N -[[ $1 = "-u" ]] && export SKIP_UPDATE=Y && shift +[[ $1 =~ "-u" ]] || [[ $1 =~ "--skip-update" ]] && export SKIP_UPDATE=Y && shift ##################### # Execution/Main # ##################### +function parse_opt_for_help() { + for value in "$@"; do + if [[ $value == "-h" ]] || [[ $value == "--help" ]]; then + usage + exit 0 + fi + done +} + function main() { + parse_opt_for_help "$@" + . "$(dirname $0)"/mithril.library update_check "$@" @@ -135,9 +147,7 @@ function main() { esac ;; *) - echo "Invalid $(basename "$0") command: $1" >&2 usage - exit 1 ;; esac diff --git a/scripts/cnode-helper-scripts/mithril.library b/scripts/cnode-helper-scripts/mithril.library index 59bfdafd6..66591bb82 100644 --- a/scripts/cnode-helper-scripts/mithril.library +++ b/scripts/cnode-helper-scripts/mithril.library @@ -235,16 +235,17 @@ set_node_minimum_version() { } update_check() { - # Check availability of checkUpdate function - if [[ ! $(command -v checkUpdate) ]]; then - echo -e "\nCould not find checkUpdate function in env, make sure you're using official guild docos for installation!" - exit 1 - fi - # Check if flag is set by script to skip update check - [[ ${SKIP_UPDATE} == Y ]] && return 0 - # Check if flag is set by user as a global (container environments etc.) to skip update check - if [[ ${UPDATE_CHECK} = Y ]]; then + # Check if flag is set by user as a global or script to skip update check + if [[ ${UPDATE_CHECK} = Y && ${SKIP_UPDATE} != Y ]]; then + echo "Checking for script updates..." + + # Check availability of checkUpdate function + if [[ ! $(command -v checkUpdate) ]]; then + echo -e "\nCould not find checkUpdate function in env, make sure you're using official guild docos for installation!" + exit 1 + fi + # check for env update ENV_UPDATED=${BATCH_AUTO_UPDATE} checkUpdate "${PARENT}"/env N N N @@ -252,13 +253,14 @@ update_check() { 1) ENV_UPDATED=Y ;; 2) exit 1 ;; esac + # check for mithril.library update checkUpdate "${PARENT}"/mithril.library N N N - # borrow ENV_UPDATED for mithril.library updates case $? in 1) ENV_UPDATED=Y ;; 2) exit 1 ;; esac + # check the script update checkUpdate "${PARENT}"/"$(basename "$0")" ${ENV_UPDATED} case $? in From 0556ea716f6d3d73481a9e324d8ae0d3dce23102 Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Mon, 2 Sep 2024 14:46:29 +1000 Subject: [PATCH 17/23] Update text to make it clear we dont use cardano-wallet --- scripts/cnode-helper-scripts/guild-deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cnode-helper-scripts/guild-deploy.sh b/scripts/cnode-helper-scripts/guild-deploy.sh index 2adbd73cc..1ac3ad83d 100755 --- a/scripts/cnode-helper-scripts/guild-deploy.sh +++ b/scripts/cnode-helper-scripts/guild-deploy.sh @@ -400,8 +400,8 @@ download_cnodebins() { tar zxf cnode.tar.gz --strip-components 2 ./bin/cardano-node ./bin/cardano-cli ./bin/cardano-submit-api ./bin/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!" + echo -e "\n Downloading Github release package for Cardano Addresses" + 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-addresses 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!" From 61cfc1440641382fb21a2733e708236c7de52bb5 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 2 Sep 2024 12:43:29 +0100 Subject: [PATCH 18/23] Logo SVG version Guild Logo update --- guild.svg | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 guild.svg diff --git a/guild.svg b/guild.svg new file mode 100644 index 000000000..335cd9b48 --- /dev/null +++ b/guild.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 46efa8c94bf75411151d792354f8573bf948399d Mon Sep 17 00:00:00 2001 From: rdlrt <3169068+rdlrt@users.noreply.github.com> Date: Tue, 3 Sep 2024 09:12:59 +1000 Subject: [PATCH 19/23] Bump Node and DBSync release versions --- files/docker/node/release-versions/cardano-node-latest.txt | 2 +- files/node-deps.json | 2 +- scripts/cnode-helper-scripts/env | 2 +- scripts/cnode-helper-scripts/guild-deploy.sh | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/files/docker/node/release-versions/cardano-node-latest.txt b/files/docker/node/release-versions/cardano-node-latest.txt index e977f5eae..8ce0f0f36 100644 --- a/files/docker/node/release-versions/cardano-node-latest.txt +++ b/files/docker/node/release-versions/cardano-node-latest.txt @@ -1 +1 @@ -9.1.0 \ No newline at end of file +9.1.1 \ No newline at end of file diff --git a/files/node-deps.json b/files/node-deps.json index aa79969ca..a929d9c62 100644 --- a/files/node-deps.json +++ b/files/node-deps.json @@ -11,7 +11,7 @@ "secp256k1": "v0.3.2", "sodium": "dbb48cce5429cb6585c9034f002568964f1ce567" }, - "9.1.0": + "9.1.1": { "blst": "3dd0f804b1819e5d03fb22ca2e6fac105932043a", "secp256k1": "v0.3.2", diff --git a/scripts/cnode-helper-scripts/env b/scripts/cnode-helper-scripts/env index 6f29a8a27..210afc061 100644 --- a/scripts/cnode-helper-scripts/env +++ b/scripts/cnode-helper-scripts/env @@ -1033,7 +1033,7 @@ fi node_version="$(${CNODEBIN} version | head -1 | cut -d' ' -f2)" cli_version="$(${CCLI} version | head -1 | cut -d' ' -f2)" -if ! versionCheckNode "9.1.0" "${node_version}" || ! versionCheckNode "9.2.1.0" "${cli_version}"; then +if ! versionCheckNode "9.1.1" "${node_version}" || ! versionCheckNode "9.2.1.0" "${cli_version}"; then echo -e "\nKoios scripts have now been upgraded to support cardano-node 9.1.x ('${node_version}' found) / cardano-cli 9.2.x.x ('${cli_version}' found).\nPlease update cardano-node binaries (ensure to read release notes and update various configs using guild-deploy (use appropriate options to download/install/overwrite parts you need) or use tagged branches for older node version (eg: ./