File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ build_archive_deb () {
364364 cp ./default/src/app/extract_blocks/extract_blocks.exe " ${BUILDDIR} /usr/local/bin/mina-extract-blocks"
365365
366366 mkdir -p " ${BUILDDIR} /etc/mina/archive"
367- cp ../scripts/archive/missing-blocks-guardian.sh " ${BUILDDIR} /etc/mina/archive "
367+ cp ../scripts/archive/missing-blocks-guardian.sh " ${BUILDDIR} /usr/local/bin/mina-missing-blocks-guardian "
368368
369369 cp ./default/src/app/missing_blocks_auditor/missing_blocks_auditor.exe " ${BUILDDIR} /usr/local/bin/mina-missing-blocks-auditor"
370370 cp ./default/src/app/replayer/replayer.exe " ${BUILDDIR} /usr/local/bin/mina-replayer"
Original file line number Diff line number Diff line change @@ -52,6 +52,13 @@ POSTGRES_DATA_DIR=${POSTGRES_DATA_DIR:=/data/postgresql}
5252PG_CONN=postgres://${POSTGRES_USERNAME} :${POSTGRES_USERNAME} @127.0.0.1:5432/${POSTGRES_DBNAME}
5353DUMP_TIME=${DUMP_TIME:= 0000}
5454ARCHIVE_GENESIS_INIT=${ARCHIVE_GENESIS_INIT:= 0}
55+ # Missing block guardian env vars
56+ export DB_USERNAME=" $POSTGRES_USERNAME "
57+ export DB_HOST=127.0.0.1
58+ export DB_PORT=5432
59+ export DB_NAME=" $POSTGRES_DBNAME "
60+ export PGPASSWORD=" $POSTGRES_USERNAME "
61+ export PRECOMPUTED_BLOCKS_URL=" https://storage.googleapis.com/mina_network_block_data"
5562
5663# Genesis Ledger
5764if [ -n " $MINA_GENESIS_LEDGER_URL " ]; then
@@ -109,7 +116,7 @@ MINA_DAEMON_PID=$!
109116sleep 30
110117
111118echo " ========================= POPULATING MISSING BLOCKS ==========================="
112- ./download -missing-blocks.sh --network ${MINA_NETWORK} --archive-uri ${PG_CONN} &
119+ TIMEOUT=3600 mina -missing-blocks-guardian daemon &
113120
114121if ! kill -0 " ${MINA_DAEMON_PID} " ; then
115122 echo " [FATAL] Mina daemon failed to start, exiting docker-start.sh"
You can’t perform that action at this time.
0 commit comments