mina icon indicating copy to clipboard operation
mina copied to clipboard

(compatible) Improve local precomputed block writing (to individual files)

Open Isaac-DeFrain opened this issue 1 year ago • 3 comments

Explain your changes:

This PR adds a local precomputed block writing functionality to the 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 gcloud 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 and --precomputed-blocks-path is changed to --precomputed-blocks-file

  • Minor improvements to logging wrt block writing

Explain how you tested your changes:

  • I built the mainnet daemon, connected to the network, and confirmed that precomputed blocks were logged to the provided directory as expected.

  • To see the specific tasks where the Asana app for GitHub is being used, see below:
    • https://app.asana.com/0/0/1204406714391537

Isaac-DeFrain avatar May 17 '23 01:05 Isaac-DeFrain

!ci-build-me

Isaac-DeFrain avatar May 19 '23 00:05 Isaac-DeFrain

!ci-build-me

ghost-not-in-the-shell avatar May 31 '23 19:05 ghost-not-in-the-shell

Reformatted

Isaac-DeFrain avatar May 31 '23 21:05 Isaac-DeFrain