Bitcoin Forum
May 14, 2024, 06:25:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: running both bitcoin-abc and bitcoin core on the same machine on: April 24, 2018, 03:46:47 AM
ok, so an update:
I tried running bitcoind (abc) and in spite of setting my datadir in bitcoin.conf file which I specified ... it tried to hijack the original datadir. thanks HCP.
I ended up running it with both the conf and datadir arguments.
any idea why that's the case? shouldn't I be able to use just the conf file to specify the datadir?

waiting for the solution from jackg / others on the su issue. I will try that too! 

for anyone else wondering how I did it, I specified the installation folders with
Code:
./configure --prefix=$HOME --exec-prefix=$HOME

then I created a new folder for where Application Support/Bitcoin would go instead, /Bitcoin-abc and specified them while running bitcoind and in the conf files.
lastly, I created symlinks for $HOME/bitcoind into $PATH using ln -s:
Code:
ln -s /Users/homeuser/bin/bitcoind /usr/local/bin/bitcoind-abc
ln -s /Users/homeuser/bin/bitcoin-cli /usr/local/bin/bitcoinabc-cli


test it by
Code:
$ which bitcoind-abc
/usr/local/bin/bitcoind-abc
$ which bitcoinabc-cli
/usr/local/bin/bitcoinabc-cli



hope this helps others out there.
any comments on blind spots/improvements in this jerry-rigged version very welcome!
2  Bitcoin / Bitcoin Technical Support / Re: running both bitcoin-abc and bitcoin core on the same machine on: April 23, 2018, 11:53:28 PM
Quote
I can run both GUIs at the same time without issue. I don't use "-listen=1", so because I don't have incoming connections, I don't think having the same "port" is a problem. If you needed to use "listen=1" to accept incoming connections, I could see this being a potential issue.


HCP, you set listen=0 in your config file for both? is that compatible with running mainnet?
thank you!!
3  Bitcoin / Bitcoin Technical Support / Re: running both bitcoin-abc and bitcoin core on the same machine on: April 23, 2018, 11:28:16 PM
thank you all! especially to jackg and LoyceV.

sorry, don't mean to get down to this level, but I get this error when running su to switch accounts in terminal (Mac OS X):  

Code:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied

1) any idea how to get rid of it? I've tried to edit my sudo file with sudo visudo, a tip I found by googling, but it doesn't seem to help.

2) also, do you have to set the program files to have different names? e.g. how can I call bitcoin-cli and bitcoind for the two different implementations if they have the same name?!

in the meantime, I'll try what HCP suggested to install bitcoin-abc to a different install directory.

thank you all!!

4  Bitcoin / Bitcoin Technical Support / running both bitcoin-abc and bitcoin core on the same machine on: April 21, 2018, 06:54:16 PM
Has anyone here done that?

What should we be looking out for or should take note of specifically to make sure it all goes smoothly? All tips are appreciated. From some research, I know the datadir's and the port's used to map to the same place, but I don't know if this is still the case,

and what about the files installed themselves, do they map to the same directories and how should we re-work the code? ie. Can we run both daemons at the same time?
I'm a tech noob here, but 200% willing to learn and figure it all out. 

Thanks in advance!!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!