Package Details: bitcoin-cash-node 22.1.0-0

Git Clone URL: (read-only, click to copy)
Package Base: bitcoin-cash-node
Description: Bitcoin Cash Node with bitcoind, bitcoin-tx, bitcoin-seeder and bitcoin-cli
Upstream URL:
Licenses: MIT
Conflicts: bitcoin-cli, bitcoin-daemon, bitcoin-seeder, bitcoin-tx
Provides: bitcoin-cli, bitcoin-daemon, bitcoin-seeder, bitcoin-tx
Submitter: quest
Maintainer: quest
Last Packager: quest
Votes: 1
Popularity: 0.87
First Submitted: 2020-02-27 07:19
Last Updated: 2020-10-17 04:58

Required by (7)

Sources (6)

Latest Comments

quest commented on 2020-11-21 01:53

If you want to send me a diff for the PKGBUILD that can rename the directory on removal, and restore it on install that would be great.

pizzaman commented on 2020-11-20 23:50

@quest That makes sense, but also you have to consider the possible MAJOR catastrophic monetary and time consequences of deleting people's wallet.dat and 100s GB of blockchain without any warning. I couldn't find references Archlinux's policy regarding user data, but I see this akin to deleting /user/pictures when you uninstall GIMP.

What about one of these:
- Rename vs Remove and inform user it has been renamed?
- Information on the package about the possibility of deleted user data
- Leave to the user to remove/rename folder after uninstall

quest commented on 2020-11-20 02:45

I can't replicate your error, in fact the install script creates /run/bitcoin, just double checked.

As for the srv directory, I remove it because the bitcoin packages use the same path. There are many packages that are not compatible with that data directory.

pizzaman commented on 2020-11-19 20:53

bitcoind[903]: Error: Unable to create the PID file '/run/bitcoin/': No such file or directory

Directory /run/bitcoin doesn't exist. Creating it manually and changing owership to bitcoin:bitcoin fixes the problem until the next reboot.

You might want to pass along a tmpfile.d config

Also in your post_remove you "rm -rf /srv/bitcoin /run/bitcoin" imo, this is quite dangerous since it might accidentally delete wallet.dat/blockchain if people decide to upgrade to a different package or whatnot.