-
Notifications
You must be signed in to change notification settings - Fork 20.1k
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
Changes blockchain storage location to AppData Local. #2238
Conversation
Updated: Tue Feb 23 21:44:25 UTC 2016 |
Unfortunately this change won't be this easy, as it would break Ethereum for all existing Windows installations. The way I can imagine this working is to check if the Another potential solution would be to actually move the folder from Roaming to Local, but I'm not sure we want to do so invasive file manipulations on users' computers, especially when they store the keys too. |
The problem with the datadir is that it contains public and private data (keystore). Setting datadir to I think that Having that said I still think the best solution would be to put everything by default in We should not move the folder automatically. There is just too much that can go wrong. What we can do is print a message on the console with the advice to manually move the folder. It then up to the user to decide if he wants to move the folder. |
I think using AppData\Local for new (but not existing) datadir is reasonable. |
If someone is going to take on the larger project of doing this right, it would probably be good to address #2239 at the same time since I'm guessing you'll have to touch the same code to fix both. Also, feel free to close this PR if someone else is going to make a PR that does the more correct thing. I put this up mainly to show the problem and the high level solution, I recognize that it is nowhere near what is necessary to actually address the backwards compatibility issue. Alternatively, if there is value in keeping the discussion here leave it open. |
Fixes #2237.
Note: This will likely not be backwards compatible. A more complete change would be to check at startup for the blockchain in
AppData/Roaming
and if found migrate it toAppData/Local
. If nothing is found then just useAppData/Local
.