Author

Topic: run bitcoin daemon in two terminals (Read 471 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
February 06, 2017, 06:42:01 PM
#3
If you use the -datadir= command line option where 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= where 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.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
February 05, 2017, 01:46:04 PM
#2
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).
newbie
Activity: 9
Merit: 0
February 04, 2017, 11:40:24 AM
#1
hi,
how can i run two nodes  under one user in regtest mode so i can send transactions ?
Jump to: