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

Precomputed block logging local compatible #3

Conversation

Isaac-DeFrain
Copy link
Member

@Isaac-DeFrain Isaac-DeFrain commented Apr 4, 2024

This PR adds a local precomputed block (PCB) writing functionality to the Mina daemon. To use it, simply set the new CLI flag --precomputed-blocks-dir PATH when you start the daemon. Block names are consistent with the current PCB naming convention {network}-{height}-{state_hash}.json.

The new functionality is only triggered when PATH is a Unix directory. Otherwise, a warning will be logged and no block writing happens.

CLI flags

  • --precomputed-blocks-dir added
  • --precomputed-blocks-path is changed to --precomputed-blocks-file

Minor improvements to logging wrt block writing

Fixes Granola-Team/mina-indexer#696

@robinbb robinbb merged commit 8043821 into Granola-Team:compatible Apr 9, 2024
robinbb added a commit that referenced this pull request Apr 12, 2024
robinbb added a commit that referenced this pull request Apr 13, 2024
robinbb added a commit that referenced this pull request Apr 13, 2024
robinbb added a commit that referenced this pull request Apr 13, 2024
robinbb added a commit that referenced this pull request Apr 13, 2024
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.

Problem: need Mina PCB logging PR in our repo
2 participants