Skip to content

Commit

Permalink
changes to db sync
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaysaha committed Apr 30, 2024
1 parent 2731b60 commit 3f03015
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/db-sync/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd ${DB_SYNC_DIR}

# DB_SYNC_TAG=13.1.0.0

# git checkout -b ${DB_SYNC_TAG} tag-${DB_SYNC_TAG}
# git checkout -b 13.1.0.0 tags/13.1.0.0
# nix-build -A cardano-db-sync -o db-sync-node

CS_DIR="/home/nsaha/projects/cardano-scripts"
Expand Down
4 changes: 2 additions & 2 deletions src/db-sync/restore_snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export PGPASSFILE="/home/nsaha/.pgpass"

CS_DIR="/home/nsaha/projects/cardano-scripts"
CARDANO_DB_SYNC_DIR="/home/nsaha/projects/cardano-db-sync"
CARDANO_SNAPSHOT="/tmp/db-sync-snapshot-schema-13.1-block-9324017-x86_64.tgz"
LEDGER_STATE_DIR="${CS_DIR}/exec/state-node-shelly-mainnet/db-ff/ledger/"
CARDANO_SNAPSHOT="/tmp/db-sync-snapshot-schema-13.2-block-10251157-x86_64.tgz"
LEDGER_STATE_DIR="${CS_DIR}/exec/ledger_restore/"

${CARDANO_DB_SYNC_DIR}/scripts/postgresql-setup.sh --restore-snapshot ${CARDANO_SNAPSHOT} ${LEDGER_STATE_DIR}
2 changes: 1 addition & 1 deletion src/rotate_kes.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def main(min_KES):
print(f"remaining kes period:{remaining_kes_period}")
if (remaining_kes_period < min_KES):
#first generate new KES params
#update_KES_params()
update_KES_params()
#next restart the chain
# t = ChainProcess()
# t.stop_chain()
Expand Down

0 comments on commit 3f03015

Please sign in to comment.