Bitcoin Forum
December 15, 2024, 06:25:24 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Mainnet-node and testnet-node on the same server - how?  (Read 161 times)
Many Coins (OP)
Member
**
Offline Offline

Activity: 294
Merit: 11

Lord Shiva


View Profile
March 09, 2018, 12:11:25 AM
 #1

I want to create two bitcoind-nodes (for mainnet and testnet) on one server (VPS), how can I do it?

Becouse if I rename bitcoind to bitcoindtestnet and run - it using the same bitcoin.conf?

Thank you!
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
March 09, 2018, 01:36:31 AM
 #2

Renaming a program is not going to change the behavior of the program, which is what you want to do (change it from using mainnet to using testnet).

To start bitcoind in testnet mode, use -testnet.

That they use the same bitcoin.conf file is known, you can use the -conf option to choose a different config file for one of your nodes.

Many Coins (OP)
Member
**
Offline Offline

Activity: 294
Merit: 11

Lord Shiva


View Profile
March 09, 2018, 04:15:54 PM
 #3

Renaming a program is not going to change the behavior of the program, which is what you want to do (change it from using mainnet to using testnet).

To start bitcoind in testnet mode, use -testnet.

That they use the same bitcoin.conf file is known, you can use the -conf option to choose a different config file for one of your nodes.

Way! Its working!!  Cool

Thank you!
jrian
Jr. Member
*
Offline Offline

Activity: 39
Merit: 6


View Profile
March 10, 2018, 12:59:15 PM
 #4

or,  you can run your bitcoind under another user Smiley
Many Coins (OP)
Member
**
Offline Offline

Activity: 294
Merit: 11

Lord Shiva


View Profile
March 10, 2018, 01:31:16 PM
 #5

or,  you can run your bitcoind under another user Smiley



You, you are very good you!

 Grin
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!