Bitcoin Forum
June 15, 2024, 09:40:37 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: run bitcoin daemon in two terminals  (Read 452 times)
chu_11 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
February 04, 2017, 04:40:24 PM
 #1

hi,
how can i run two nodes  under one user in regtest mode so i can send transactions ?
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
February 05, 2017, 06: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).
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3430
Merit: 6705


Just writing some code


View Profile WWW
February 06, 2017, 11:42:01 PM
 #3

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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!