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

Prevent blockchain create from failing after previous failed attempts #2336

Open
meaghanfitzgerald opened this issue Nov 14, 2024 · 0 comments
Assignees

Comments

@meaghanfitzgerald
Copy link
Collaborator

Goal

Enable users to call avalanche blockchain create without fail.

Details

Like documented in #2334, users are unable to successfully call avalanche blockchain create <name> if the call has failed during previous attempts to create a blockchain with the same <name>. In other instances, a user may want to overwrite a blockchain config previously created.

avalanche blockchain create should:

  • check if blockchain has already been created
  • if yes, ask user "Would you like to overwrite the existing blockchain configuration for ?"
    • if user selects yes, create runs successfully, overwritting the existing configuration
    • if no, prompt user for a new blockchain name

if avalanche blockchain create fails:

  • check if a subnet directory has been created, a genesis file and a sidecar was also included in creation
    • if not, clean up .avalanche-cli/subnets/<name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog 🗄️
Development

No branches or pull requests

2 participants