- Notifications
You must be signed in to change notification settings - Fork30
License
pegnet/pegnet
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is the main repository for the PegNet application.
Pegged tokens reflect real market assets such as currencies, precious metals, commodities, cryptocurrencies etc. The conversion rates on PegNet are determined by a decentralized set of miners who submit values based on current market data. These values are recorded in the Factom blockchain and then graded based upon accuracy and mining hashpower.
The draft proposal paper is availablehere.
For any questions, troubleshooting or further information head todiscord.
- Pegnet binary from thereleases page
- Factom binaries from theirdistribution page
- Factom Address that is funded or Entry Credits which can be purchased directlyhere orhere.
Create a.pegnet
folder inside your home directory. Copy theconfig/defaultconfig.ini
file there.
On Windows this is your%USERPROFILE%
folder
Linux example:
mkdir~/.pegnetwget https://raw.githubusercontent.com/pegnet/pegnet/master/config/defaultconfig.ini -P~/.pegnet/
Sign up for an API Key fromhttps://currencylayer.com, replace APILayerKey in the config with your own
Replace either ECAddress or FCTAddress with your own
Modify the IdentityChain name to one of your choosing.
Have a factomd node running on mainnet.
Have factom-walletd open
Start Pegnet
On first startup there will be a delay while the hash bytemap is generated. Mining will only begin at the start of each ten minute block.
JoinDiscord and chat about it with lovely people!
Run a testnet node
Create a github issue because they always exist.
Fork the repo and submit your pull requests, fix things.
Docker guide can be foundhere for an automated solution.
Install thefactom binaries
The Factom developer sandbox setup overview ishere, which covers the first parts, otherwise use below.
# In first terminal# Change blocktime to whatever suits youfactomd -blktime=120 -network=LOCAL# Second Terminalfactom-walletd# Third Terminalfa='factom-cli importaddress Fs3E9gV6DXsYzf7Fqx1fVBQPQXV695eP3k5XbmHEZVRLkMdD9qCK'ec='factom-cli newecaddress'factom-cli listaddresses# Verify addressesfactom-cli buyec$fa$ec 100000factom-cli balance$ec# Verify Balance# Fork Repo on github, clone your forkgit clone https://github.com/<USER>/pegnet# Add main pegnet repo as a remotecd pegnetgit remote add upstream https://github.com/pegnet/pegnet# Sync with main development branchgit pull upstream develop# Initialize the pegnet chaincd initializationgo build./initialization# You should be ready to roll from here