Bitcoin ABC uses the same registry path on Windows as Bitcoin Core
Describe the issue
On Windows, Bitcoin Core and Bitcoin ABC both store their settings by default in the registry at Computer\HKEY_CURRENT_USER\Software\Bitcoin\Bitcoin-Qt. This actually prevents running Bitcoin Core and Bitcoin ABC on the same machine, without taking extra care: The key strDataDir stores the path to the datadirectory. The local copy of the blockchain will get corrupted if you run both (not even parallel, but sequentially) and do not explicitly pass the option datadir.
Can you reliably reproduce the issue?
If so, please list the steps to reproduce below:
- Install Bitcoin Core, choose some data directory
- Check the registry, it is stored in strDataDir
- Install Bitcoin ABC, it will silently also use that strDataDir
Expected behaviour
Bitcoin ABC should have its separate registry path.
Actual behaviour
Bitcoin ABC uses the same registry path as Bitcoin Core
What version of bitcoin-core are you using?
Bitcoin ABC Version v0.14.6.0-a46e63c (64-Bit)
Machine specs:
- OS: Windows 10, 64bit (en)
dupe of #32 ?
Related, but probably not a dupe: #32 is about the configuration directory (a path on the filesystem). This issue here is about an entry in the windows registry. Note that in my case (Windows 10, en, 64bit) I do not have any Bitcoin Core / ABC related directory inside C:\Users\Username\AppData\Roaming\Bitcoin, but only an entry in the windows registry at Computer\HKEY_CURRENT_USER\Software\Bitcoin\Bitcoin-Qt. No clue from where inside the code of Bitcoin Core / ABC this registry entry is created.
Perhaps not specifically, but feels like the intent of all these issues to for the ABC node to be runnable in parallel to the core node which is why it smelled like a dupe.
Closing as a dup of #40