Title: Running another instance of bitcoin-qt dedicated to testnet/regtest? Post by: Geremia on June 10, 2015, 08:02:37 PM 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 (https://bitcoin.stackexchange.com/questions/2052/running-two-bitcoind-instances-for-different-nets%22)" question and "How to run testnet and bitcoind on same server (https://bitcointalk.org/index.php?topic=771930.0)" thread here, but I want to associate `bitcoin-qt`, not just `bitcoind`, with the testnet/regtest. (cf. the related StackExchange question (https://bitcoin.stackexchange.com/q/37902/4334)) Title: Re: Running another instance of bitcoin-qt dedicated to testnet/regtest? Post by: person on June 10, 2015, 08:06:50 PM 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 Title: Re: Running another instance of bitcoin-qt dedicated to testnet/regtest? Post by: BitBlitz on June 10, 2015, 08:17:32 PM And in one of the configs, add testnet=1 in the bitcoin.conf file.
Title: Re: Running another instance of bitcoin-qt dedicated to testnet/regtest? Post by: achow101 on June 10, 2015, 08:22:40 PM Just start your testnet instance with the "-testnet" flag and it will create another instance of Bitcoin-qt on the testnet network.
Title: Re: Running another instance of bitcoin-qt dedicated to testnet/regtest? Post by: Geremia on June 11, 2015, 01:14:59 AM 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 (https://bitcoin.org/en/developer-examples#regtest-mode): Quote Regtest wallets and block chain state (chainstate) are saved in the regtest subdirectory of the Bitcoin Core configuration directory. Title: Re: Running another instance of bitcoin-qt dedicated to testnet/regtest? Post by: Geremia on June 11, 2015, 01:29:50 AM I just ran "bitcoin-qt -regtest," and it launched with a green icon, distinguishing it from my already-running red one! Nice!
|