Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rosetta] use mina missing block guardian script instead of download missing blocks #16375

Merged
merged 4 commits into from
Nov 21, 2024

Conversation

dkijania
Copy link
Member

@dkijania dkijania commented Nov 21, 2024

Porting fix only from PR: #16346, while waiting for test stabilization

How i tested it:

docker run -d --env MINA_NETWORK=mainnet gcr.io/o1labs-192920/mina-rosetta:${ROSETTA_DOCKER_TAG}-mainnet

@dkijania dkijania self-assigned this Nov 21, 2024
@dkijania dkijania requested a review from a team as a code owner November 21, 2024 07:25
@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-nightly-me

@@ -109,7 +116,7 @@ MINA_DAEMON_PID=$!
sleep 30

echo "========================= POPULATING MISSING BLOCKS ==========================="
./download-missing-blocks.sh --network ${MINA_NETWORK} --archive-uri ${PG_CONN} &
/etc/mina/archive/missing-blocks-guardian.sh single-run &
Copy link
Member

@kaozenn kaozenn Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts: The missing-blocks-guardian is not only used once to populate the missing blocks between the daily SQL dump and the current latest available block. The missing-blocks-guardian should run every hour to ensure no blocks are missed in the long run.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oki, so we should use different mode of missing-blocks-guardian which will run as daemon

Copy link
Member

@kaozenn kaozenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me.

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-nightly-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania dkijania merged commit 889607b into compatible Nov 21, 2024
43 checks passed
@dkijania dkijania deleted the dkijania/fix_rosetta_start_issue_comp branch November 21, 2024 17:20
@coveralls
Copy link

Coverage Status

coverage: 33.184% (-28.9%) from 62.1%
when pulling 07b5dd0 on dkijania/fix_rosetta_start_issue_comp
into 422c695 on compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants