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

Replayer can dump sql script after fixing nonces #15278

Merged
merged 7 commits into from
Mar 12, 2024

Conversation

dkijania
Copy link
Member

@dkijania dkijania commented Mar 6, 2024

Added ability for replayer to dump repair nonces script which then can be applied to target db. Usage:

mina-replayer  --archive-uri postgres://....  --dump-repair-script repair.sql --repair-nonces --set-nonces

⚠️ --dump-repair-script works only when repair-nonces or set-nonces are applied.

After successful run one can applied repair.sql script like below:

(echo "BEGIN;"; cat repair.sql; echo "COMMIT;") | psql -U postgres -d archive_balances_migrated

…d. Afterwards one can apply this script to target db and fix nonces
@dkijania dkijania self-assigned this Mar 6, 2024
@dkijania
Copy link
Member Author

dkijania commented Mar 6, 2024

!ci-build-me

@dkijania
Copy link
Member Author

dkijania commented Mar 7, 2024

!ci-build-me

@dkijania
Copy link
Member Author

dkijania commented Mar 7, 2024

!ci-build-me

Co-authored-by: emberian <ember.arlynx@o1labs.org>
@dkijania
Copy link
Member Author

dkijania commented Mar 7, 2024

!ci-build-me

dkijania added 2 commits March 8, 2024 12:22
…d. Afterwards one can apply this script to target db and fix nonces
@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@mrmr1993 mrmr1993 merged commit 8a100b7 into compatible Mar 12, 2024
13 checks passed
@mrmr1993 mrmr1993 deleted the dkijania/replayer_enh_dump_repair_script branch March 12, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants