Bitcoin Forum
December 15, 2024, 01:01:49 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Running another instance of bitcoin-qt dedicated to testnet/regtest?  (Read 1092 times)
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 507
Merit: 253


View Profile WWW
June 10, 2015, 08:02:37 PM
 #1

Is it possible to run another instance of `bitcoin-qt` dedicated to testnet/regtest? If so, how do i do this?

My question is similar to the "Running two bitcoind instances for different nets" question and "How to run testnet and bitcoind on same server" thread here, but I want to associate `bitcoin-qt`, not just `bitcoind`, with the testnet/regtest.

(cf. the related StackExchange question)

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
person
Sr. Member
****
Offline Offline

Activity: 315
Merit: 250



View Profile WWW
June 10, 2015, 08:06:50 PM
 #2

It should work the same way, just configuring two bitcoin-qt clients to use different configurations.

See this: https://bitcointalk.org/index.php?topic=249476.msg2649295#msg2649295
BitBlitz
Sr. Member
****
Offline Offline

Activity: 285
Merit: 250


Turning money into heat since 2011.


View Profile
June 10, 2015, 08:17:32 PM
 #3

And in one of the configs, add testnet=1 in the bitcoin.conf file.

I see the value of Bitcoin, so I don't worry about the price...
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
June 10, 2015, 08:22:40 PM
 #4

Just start your testnet instance with the "-testnet" flag and it will create another instance of Bitcoin-qt on the testnet network.

Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 507
Merit: 253


View Profile WWW
June 11, 2015, 01:14:59 AM
 #5

Just start your testnet instance with the "-testnet" flag and it will create another instance of Bitcoin-qt on the testnet network.
Oh, I didn't know it was that easy! thank you!

I also discovered the "datadir" flag, which was just what I was looking for, although it seems testnet/regtest make their directories. At least regtest does, according to the Bitcoin Developer Examples documentation:

Quote
Regtest wallets and block chain state (chainstate) are saved in the regtest subdirectory of the Bitcoin Core configuration directory.

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 507
Merit: 253


View Profile WWW
June 11, 2015, 01:29:50 AM
 #6

I just ran "bitcoin-qt -regtest," and it launched with a green icon, distinguishing it from my already-running red one! Nice!

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
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!