Bitcoin Forum
May 04, 2024, 01:33:58 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 447 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 ?
1714829638
Hero Member
*
Offline Offline

Posts: 1714829638

View Profile Personal Message (Offline)

Ignore
1714829638
Reply with quote  #2

1714829638
Report to moderator
1714829638
Hero Member
*
Offline Offline

Posts: 1714829638

View Profile Personal Message (Offline)

Ignore
1714829638
Reply with quote  #2

1714829638
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
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: 3388
Merit: 6581


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!