From f12b35df2a439cb2c3f9f049aca945617ef48dc3 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 21 Nov 2024 12:29:15 +0100 Subject: [PATCH] Update db-sync utils for 13.6.0.1 release - Enacted gov_action_proposal are no longer marked as dropped --- .github/env_nightly_dbsync | 4 ++-- .github/env_nightly_dbsync_pv10 | 4 ++-- cardano_node_tests/utils/dbsync_utils.py | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/env_nightly_dbsync b/.github/env_nightly_dbsync index d848272ec..fc19a128a 100644 --- a/.github/env_nightly_dbsync +++ b/.github/env_nightly_dbsync @@ -3,6 +3,6 @@ COMMAND_ERA=conway MARKEXPR=dbsync CLUSTERS_COUNT=4 ENABLE_LEGACY=true -DBSYNC_REV=13.5.0.0 -DBSYNC_TAR_URL=https://github.com/IntersectMBO/cardano-db-sync/releases/download/13.5.0.0/cardano-db-sync-13.5.0.0-linux.tar.gz +DBSYNC_REV=13.6.0.1 +DBSYNC_TAR_URL=https://github.com/IntersectMBO/cardano-db-sync/releases/download/13.6.0.1/cardano-db-sync-13.6.0.1-linux.tar.gz DBSYNC_SKIP_INDEXES=true diff --git a/.github/env_nightly_dbsync_pv10 b/.github/env_nightly_dbsync_pv10 index 99f382cad..a4f56d27b 100644 --- a/.github/env_nightly_dbsync_pv10 +++ b/.github/env_nightly_dbsync_pv10 @@ -3,6 +3,6 @@ COMMAND_ERA=conway PV10=true MARKEXPR=dbsync CLUSTERS_COUNT=4 -DBSYNC_REV=13.5.0.0 -DBSYNC_TAR_URL=https://github.com/IntersectMBO/cardano-db-sync/releases/download/13.5.0.0/cardano-db-sync-13.5.0.0-linux.tar.gz +DBSYNC_REV=13.6.0.1 +DBSYNC_TAR_URL=https://github.com/IntersectMBO/cardano-db-sync/releases/download/13.6.0.1/cardano-db-sync-13.6.0.1-linux.tar.gz DBSYNC_SKIP_INDEXES=true diff --git a/cardano_node_tests/utils/dbsync_utils.py b/cardano_node_tests/utils/dbsync_utils.py index baf3bf041..b34e1970b 100644 --- a/cardano_node_tests/utils/dbsync_utils.py +++ b/cardano_node_tests/utils/dbsync_utils.py @@ -1270,12 +1270,11 @@ def check_treasury_withdrawal(stake_address: str, transfer_amts: tp.List[int], t rem_amts.remove(r_amount) assert row.ratified_epoch, "Action not marked as ratified in db-sync" assert row.enacted_epoch, "Action not marked as enacted in db-sync" + assert not row.dropped_epoch, "Action marked as dropped in db-sync" + assert not row.expired_epoch, "Action marked as expired in db-sync" assert ( row.enacted_epoch == row.ratified_epoch + 1 ), "Wrong relation between enacted and ratified epochs in db-sync" - assert ( - row.enacted_epoch == row.dropped_epoch - ), "Wrong relation between enacted and dropped epochs in db-sync" def check_reward_rest(stake_address: str, transfer_amts: tp.List[int], type: str = "") -> None: