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

Development experience improvements to devnet.sh #3130

Draft
wants to merge 2 commits into
base: mainnet-staging
Choose a base branch
from

Conversation

vvp
Copy link
Contributor

@vvp vvp commented Feb 26, 2024

This PR introduces two improvements to development experience when using devnet.sh to start dev nodes locally.

Support for custom executables. This PR enables devnet.sh to start local devnet nodes using a custom executable instead of currently installed snarkos executable, by setting the path to an environment variable. For example:

export SNARKOS_BIN=target/release/snarkos
./devnet.sh

When SNARKOS_BIN is set, the script skips the question of whether to rebuild+install the snarkos executable.

Auto-restart option. This PR also implements a simple auto-restart for snarkOS-processes using a infinite while-loop in bash. With this, you can test dev nodes going off and back online simply by sending SIGTERM signals to processes. The length of the auto-restart delay can be configured during script startup.

@vvp vvp force-pushed the feat/custom-binary-devnet branch from f4f7227 to 49bd2f6 Compare March 6, 2024 12:14
@howardwu howardwu marked this pull request as draft March 9, 2024 00:19
@vvp vvp force-pushed the feat/custom-binary-devnet branch from e5d621d to 986e95a Compare March 15, 2024 14:03
@vvp vvp changed the title Support for using custom snarkOS build in devnet.sh Development experience improvements to devnet.sh Mar 15, 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.

None yet

1 participant