Title: run bitcoin daemon in two terminals Post by: chu_11 on February 04, 2017, 04:40:24 PM hi,
how can i run two nodes under one user in regtest mode so i can send transactions ? Title: Re: run bitcoin daemon in two terminals Post by: jackg on February 05, 2017, 06:46:04 PM hi, how can i run two nodes under one user in regtest mode so i can send transactions ? As far as I understand, this isn't possible as the coding for bitcoin core (which daemon is a part of) as it needs a lock on the data directory that is being used. However, I'm not sure if there's a possibility for using a different data directory for each daemon application (but that would require resyncing the blockchain on the new client set up). Title: Re: run bitcoin daemon in two terminals Post by: achow101 on February 06, 2017, 11:42:01 PM If you use the -datadir=<path> command line option where <path> is the path to the data directory for that node, you can set up multiple nodes with different data directories. This means that both will have a complete copy of the blockchain, but with regtest that is fine as it will be extremely small. If you want all of them to be able to accept incoming connections, then they all will need to have different ports for incoming connections. You can specify that with -port=<port> where <port> is the port you want to assign to that node. If you don't want to do that, then you will need to start all but one of the bitcoinds with -listen=0 so that they don't all try to take port 18333 for incoming connections.
|