bitcoin-abc icon indicating copy to clipboard operation
bitcoin-abc copied to clipboard

Bitcoin ABC uses the same registry path on Windows as Bitcoin Core

Open eg-be opened this issue 9 years ago • 4 comments

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:

  1. Install Bitcoin Core, choose some data directory
  2. Check the registry, it is stored in strDataDir
  3. 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)

eg-be avatar Aug 25 '17 07:08 eg-be

dupe of #32 ?

bacoboy avatar Oct 21 '17 17:10 bacoboy

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.

eg-be avatar Oct 22 '17 11:10 eg-be

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.

bacoboy avatar Oct 22 '17 23:10 bacoboy

Closing as a dup of #40

schancel avatar Dec 20 '17 04:12 schancel