BitcoinPrivate-legacy/doc/testnet.md

28 lines
1.1 KiB
Markdown
Raw Normal View History

2018-02-23 19:36:14 -08:00
Connecting to testnet
2018-02-23 19:34:15 -08:00
==========================================================
2018-02-24 07:24:31 -08:00
First, follow the build instructions in [README](/README.md)
2018-02-24 07:33:09 -08:00
Then, to run btcpd and connect to testnet
2018-02-24 07:19:23 -08:00
#### Linux
2018-02-24 07:24:31 -08:00
```
2018-02-24 07:19:23 -08:00
mkdir ~/.btcprivate
touch ~/.btcprivate/btcprivate.conf
./src/btcpd -testnet -gen
2018-02-24 07:24:31 -08:00
```
2018-02-23 19:34:15 -08:00
#### Windows
2018-02-24 09:50:30 -08:00
Click on Start/Windows Logo and type `cmd` once there type `start %AppData%\`. It will open the explorer in that directory. Create a new folder called "BTCPrivate" and a text file. Open the text file and save as as `btcprivate.conf` (be sure you remove the txt extension) in the directory. An empty file is sufficient
2018-02-24 09:50:30 -08:00
Create a Batch file in the BTCP directory called "start-wallet.bat" with the following:
2018-02-24 09:51:01 -08:00
```
echo "Starting the BTCP Wallet"
2018-02-24 09:50:30 -08:00
powershell -Command ".btcpd.exe" -testnet -gen
2018-02-24 09:51:01 -08:00
@pause
```
2018-02-24 09:50:30 -08:00
Run start-wallet.bat and the blockchain will begin to be synced. After it is synced it will begin mining blocks. If you don't wish to mine remov the -gen option from the batch file.
Now that you have your node up you can use `btcp-cli.exe` in cmd to make RPC calls to your node (i.e `btcp-cli.exe -testnet getinfo`).