anza-xyz / agave

Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces.
https://www.anza.xyz/
Apache License 2.0
431 stars 210 forks source link

[installer] agave installer removes existing local keypairs #2920

Open nickfrosty opened 2 months ago

nickfrosty commented 2 months ago

Problem

The Agave installer seems to remove any existing local keypairs (including the default id.json) files when installing from the official install shell script via sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"

This is a problem for people that installed the toolsuite using the deprecated Solana Labs installer since they would likely have local keypair files on their system that get wiped when performing the official Anza Migration guide

Proposed Solution

The installer should check to see any keypair files or other important/standard files exist and either migrate them to the new install or prompt the user what to do

nickfrosty commented 2 months ago

cc @willhickey @rexstjohn-anza