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

Change the default datadir to bitcoincash, not bitcoin.

Open afk11 opened this issue 7 years ago • 6 comments

Describe the issue

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. start bitcoin cash

Expected behaviour

Should create a directory, ~/.bitcoincash

Actual behaviour

It uses ~/.bitcoin and writes to bitcoins debug.log, and other files.

What version of bitcoin-abc are you using?

2a10748d48f9a895f349b6b8411461acff777dc5 compiled from source

Machine specs:

  • OS: Ubuntu
  • CPU: na
  • RAM: na
  • Disk size: na
  • Disk Type (HD/SDD): na

afk11 avatar Dec 27 '17 11:12 afk11

That's an issue for me too, I would suggest ".bitcoinabc" as an alternative name, this way I can use multiple node daemons on the same user.

Polve avatar Dec 27 '17 11:12 Polve

I would suggest using the same method as bitcoin classic started, it better follows the standard for how data should be placed, and can also "play nice" with other chains with shared history (just to keep it simpler for those that still need to use other legacy coins until fully migrated)

NiKiZe avatar Dec 27 '17 17:12 NiKiZe

well today my Bitcoin-ABC destroy my Bitcoin-CLASSIC database… because after automatic restart…(using the option set on configuration)… the "datadir" commandline option from the previous start was NOT set… and Bitcoin-Cash start using the "default" datadir ".bitcoin"… starting immedietly destroying the Bitcoin-Core database.

→ that is the reason you should NEVER use the same default's as your competitor…

aotto1968 avatar Dec 31 '17 09:12 aotto1968

well today my Bitcoin-ABC destroy my Bitcoin-CLASSIC database…

Lost any coins, or was wallet.dat not affected?

thijstriemstra avatar Jan 14 '18 18:01 thijstriemstra

can NOT say that "bitcoin" are lost… I use this system only as node…

aotto1968 avatar Jan 18 '18 13:01 aotto1968

In addition to changing the default data directory, the binary names should be changed as well so it's possible to have multiple implementations installed on the same system.

justusranvier avatar Jan 23 '18 21:01 justusranvier