PegNet Testnet Guide

PEGNET TESTNET SETUP STEPS

David A. Johnston
2 min readSep 24, 2020
Credit to The Merkle for the Image

Calling All PegNet Testers

Miners, stakers and traders are all required to operate the PegNet testnet. Jump in a use one of those old laptops you have sitting around to mine some sweet testnet PEG. Instructions for the testing of versions 2.0.2 are below.

Setup Assumptions

This setup assumes you are:
1. Connecting to a remote Factom Testnet node (https://dev.factomd.net/v2)
2. Running Factom walletd locally from source or via docker (https://hub.docker.com/r/factominc/factom-walletd)
3. Running PegNet (https://github.com/pegnet/pegnet/tree/master) from local build.
4. Running Pegnetd (https://github.com/pegnet/pegnetd/tree/master) from local build.

Below are just the changes in defaultconfig.ini you’ll need to make to support TestNet.

Step One Edit defaultconfig.ini

Edit defaultconfig.ini (that will reside at ~/.pegnet/defaultconfig.ini)

1. [Debug]: no changes required

2. [Database]
A. MinerDatabase=$PEGNETHOME/data$PEGNETNETWORK/test-miner.ldb
B. NodeDatabase=$PEGNETHOME/data
$PEGNETNETWORK/test-node.sqlite

3. [API]: no changes required

4. [Staker]
A. FactomdLocation=“<TESTNET FACTOM NODE IP>:8088”
B. WalletdLocation=“localhost:8089”
C. Protocol=TestNet
D. Network=TestNet
E. ECAddress=<YOUR TESTNET EC ADDRESS>
F. CoinbaseAddress=<YOUR TESTNET FCT ADDRESS>

5. [Miner]
A. FactomLocation=“<TESTNET FACTOM NODE IP>:8088”
B. WalletdLocation=‘localhost:8089”
C. Protocol=TestNet
D. Network=TestNet
E. ECAddress=<YOUR TESTNET EC ADDRESS>
F. CoinbaseAddress=<YOUR TESTNET FCT ADDRESS>
G. IdentityChain=<YOUR TESTNET IDENTITY>

6. [Oracle]
A. Fill in your API keys as necessary

7. [OracleDataSources]
A. Fill in rankings as necessary

Step Two Edit /config/factomd.conf

. FactomdLocation = “<TESTNET FACTOM NODE IP>:8088”

Step Three If You Are Using The Docker Edit docker-compose.yml

  1. Edit docker-compose.yml to comment out factomd service and volume and walletd’s dependency on factomd service

Step Four In pegnetd, edit pegnetd-conf.toml:

  1. [app] In pegnetd, edit pegnetd-conf.toml:
    A. dbpath = “$HOME/.pegnetd/testnet/node.db”
    B. server = “<TESTNET FACTOM NODE IP>:8088/v2”

Step Five Run

To run, run both PegNet and pegnetd with the — testing flags

What to Test On PegNet Version 2.0.2

Here is the short list of pull requests in testing now as part of the 2.0.2 version of PegNet.

PRs that can be tested individually:
Pull 159 — https://github.com/pegnet/pegnetd/pull/159
Pull 160 — https://github.com/pegnet/pegnetd/pull/160
Pull 162 — https://github.com/pegnet/pegnetd/pull/162
Pull 163 — https://github.com/pegnet/pegnetd/pull/163
Pull 165 — https://github.com/pegnet/pegnetd/pull/165
Pull 166 — https://github.com/pegnet/pegnetd/pull/166
Pull 392 — https://github.com/pegnet/pegnet/pull/392

PRs that have to be tested with all testers using the same PRs.
Pull 164 — https://github.com/pegnet/pegnetd/pull/164
Pull 395 — https://github.com/pegnet/pegnet/pull/395

See results on the Factom Testnet Explorer

Link to the Testnet Explorer https://testnet.factoid.org/
If anyone wants to test and needs some test PEG. DM me with your address on Discord https://discord.gg/HqY5Hqv.

- Transaction chain: https://testnet.factoid.org/data?type=chain&key=55f41a66de87fc09ce4cdede4bc32eaee1ce8db203192564078c9875662d6189

OraclePriceRecordChain: https://testnet.factoid.org/data?type=chain&key=f640503c1b7a6dfd58fa955d83cf0e974c22db4b5db1818f813d0f97a16809b2

— StakingPriceRecordChain: https://testnet.factoid.org/data?type=chain&key=8efac3ae60d7506d31f0d9350e9cfbc00c90d28c817698efec6c5a7f6daf40e1

--

--

David A. Johnston

Technologist, Voluntarist, Future Martian Settler, & Evangelist for Decentralization.