Releases: pegnet/pegnet
v2.0.3 Release
- Removed the randomization algorithm from SPR.
- Bug fixes from v2.0.2
What does this mean for you?
- If you are a staker, Update immediately, as you are not currently earning any staking rewards.
- If you are a solo miner using the reference miner. Update immediately, as you are not currently earning any mining rewards.
v2.0.2 Release
- Staking Price Record randomization
- Add version 7 SPR
- Update Polling module
- OracleDataSoure default order
- Bug fixes from v2.0.1
What does this mean for you?
- If you are a solo miner using the reference miner. Update immediately, as you are not currently earning any rewards.
- If you are running the prosper pool software as the pool operator, you need to update
v2.0.1 Release
- Add Staking Signature
- Update v5 Mining Grading modules
- Add v6 Stake Grading modules
- Bug fixes from 2.0
What does this mean for you?
- If you are a solo miner using the reference miner. Update immediately, as you are not currently earning any rewards.
- If you are running the prosper pool software as the pool operator, you need to update (update coming soon for prosper)
- If you are a miner on the orax or prosper-pool, you do not need to take any action.
v2.0 + V5 OPR Release
Hardfork is at block height 258796 estimated to be Aug 19th, 2020, 14:00 UTC. All updates must happen prior to this block height.
Staking 2 “PEG Staking”- SPR based staking payout (PIP-13)
Top100 PEG holders get rewarded for reporting oracles prices (random 25 pAsset addresses selected pro-rata based) on their pAsset balances for rewards and to pull oracle price rewards from each block.
The reward is 4,500 PEG per block.
Remove price spikes and use trimmed mean (PIP-15)
Detect and block conversions when there is a large move from API price reporting.
Detect divergence between SPR and OPR to determine assets prices (PIP-14)
Staking sets the upper and lower bounds of a price range, but oprs set the price specifically.
If the winning opr not in the staking range, the network pauses. That way neither stakers nor miners alone can change the price, both would have to work together.
Both miners and stakers get the price data from the same sources.
Removal of the 1% price band from the grading algorithm
OPR & SPR grading algorithm has been updated by removing the 1% price band.
Also used Trimmed Mean instead of mathematical average in the algorithm.
Update reward block to 9,000 PEG for miners
Originally, mining reward was 5000 PEG, but it is 9000 PEG per block in 2.0
Turn off 5,000 PEG per block conversions from pAssets to PEG
In Pegnet 2.0, any conversion from pAssets to PEG is disabled.
V5 OPR Update
V5 oprs come with 20 additional currencies:
Add Currency AED
Add Currency ARS
Add Currency TWD
Add Currency RWF
Add Currency KES
Add Currency UGX
Add Currency TZS
Add Currency BIF
Add Currency ETB
Add Currency NGN
Add CryptoCurrency HBAR
Add CryptoCurrency NEO
Add CryptoCurrency CRO
Add CryptoCurrency ETC
Add CryptoCurrency ONT
Add CryptoCurrency DOGE
Add CryptoCurrency VET
Add CryptoCurrency HT
Add CryptoCurrency ALGO
Add CryptoCurrency DGB
v2.0.0-beta-1
Preview version for PegNet 2.0
V4 OPR Release
V4 OPR Update
Hardfork is at block height 231620 estimated to be Feb 12, 2020, 18:00 UTC. All updates must happen prior to this block height.
V4 oprs come with additional currencies:
* Add Currency AUD
* Add Currency NZD
* Add Currency SEK
* Add Currency NOK
* Add Currency RUB
* Add Currency ZAR
* Add Currency TRY
* Add CryptoCurrency EOS
* Add CryptoCurrency LINK
* Add CryptoCurrency ATOM
* Add CryptoCurrency BAT
* Add CryptoCurrency XTZ
Also Supports ECDSA keys for the erc20 Ethereum bridge.
What does this mean for you?
- If you are a solo miner using the reference miner. Update immediately, as you are not currently earning any rewards.
- If you are running the prosper pool software as the pool operator, you need to update (update coming soon for prosper)
- If you are a miner on the orax or prosper-pool, you do not need to take any action.
Changelog
- Additional currencies
- Polling sources updates to include new currencies
Grading Implementation Fix
Pegnet had a fork at height 225337. This was caused by a slight implementation difference of pegnetd and pegnet. Pegnetd is the offical implementation of the protocol, as that is the binary run by the exchanges and users of the system. For this reason, we are applying a patch to pegnet to resolve this slight difference.
If you are running the reference miner, you will need to update immediately. Currently all reference miners are running on the wrong fork.
What does this mean for you?
- If you are a solo miner using the reference miner. Update immediately, as you are not currently earning any rewards.
- If you are running the prosper pool software as the pool operator, you do not need to take any action. The prosper pool does not have the bug.
- If you are a miner on the orax or prosper-pool, you do not need to take any action.
I would like to thank @luap on discord for assistance dealing with the fork and creation of the patch. Luap is the creator of the orax pool and the nice UI that helped easily identify the fork.
ChangeLog:
- Do not sort before passing through the remove duplicates filter to match pegnetd.
Free Floating PEG + 5K Limit
This update brings in 2 huge updates to Pegnet, and it affects pegnet users and miners. All users of pegnetd and all miners will have to update their software. For miners mining as part of a pool, only the pool operators will need to update.
The 2 major changes: Activate at block height 222270, estimated to be Dec 9, 2019, 17:00 UTC. You MUST update by this block height.
- Floating PEG Price (MINER UPDATE)
- 5K Conversion Limit (PEGNETD UPDATE)
Floating PEG Price
The PEG Price has been calculated by the equation Total Market Cap / Total PEG Supply, but this is now changing. That equation was used to bootstrap the network before PEG was listed on an exchange. Now that PEG is listed, the PEG price will come from the same sources as all other assets; the external market.
!!! As a miner, this means you have to update your miner software to recognize this change, as this will fork the pegnet chain. All miners will additionally have to add a polling source for the price of PEG. 3 Options are currently available:
- https://pegnetmarketcap.com/
- https://www.factoshi.io/pegnet
- https://www.coingecko.com/en/coins/pegnet
These can be enabled in the config by adding these lines: https://github.com/pegnet/pegnet/blob/7365ebab4df8b3922a2f0dffd73014c5c0e98267/config/defaultconfig.ini#L148-L150. Remember to set a priority >= 0, and double-check your datasource configuration with pegnet datasources. You can consult this wiki page for more information on configuring your datasources https://github.com/pegnet/pegnet/wiki/Configuring-Your-DataSources. This can be done before the activation height, the miners will automatically switch to include the PEG price at block height 222270. So update asap!
5K Conversion Limit
After the activation height, only 5K PEG per block can be created from conversions. If more than 5K PEG is requested to be converted in a block by 1 or more users, those users will instead receive a portion of the 5K PEG + a refund of their leftover amount. If you want to know why is this being implemented, please refer to this medium post here.
If you want to know how it is being implemented,
- Source Code for Proportional Payout
- Formulas for Proportional Payout
- The tl;dr (ok you have to read a little)
- If you want to play around with the design, a simple google sheet was made during testing. Feel free to make a copy of it here
Other changes
Pegnetd Changelog:
- Richlist in the cli + api
- Refund output in PEG conversions. Until now, all conversions were whole. Now that partial conversions exist, since there is a limit of 5K PEG, an additional output exists; the refund. To accommodate this, all PEG conversions that have a refund will have an output in the transfer's
outputsfield that indicates the amount of the original asset returned. If you process the transactionoutputsfield regardless if it is a conversion or transfer, you will not have to update your code that handles txs. An example of this new api output can be found in the PR comments here. - Performance boost in
get txscall - Free floating PEG activation
- 5K Conversion Limit activation
Pegnet Changelog:
- Modularized Grading, OPRs, Conversions, and more for external libraries (pegnetd uses this)
- Free floating PEG activation for the miner. Datasources were added for this update, and you must update your config.
- Some small miner enhancements
NetMiner Independence Fix
NetMiner Independence Patch
There was a bug in the netminer that was making the netminer use the netcoordinator's coinbase address in it's oprs. This means the netminer was not using the factoid address specified in his config.
This was fixed. The coordinator is not a pool, and each netminer is an independent miner who can receive their own rewards. If you were planning on having multiple payout addresses, or more than 1 party on a netminer, you should update your netminer to this branch.
Note This update is only needed if you are using the netminer with a different coinbase address than the coordinator. And only the netminer needs to be updated.
Behavior Changes:
- The
netminerwill use the coinbase address located in it's own config file.
Changelog:
- Bug fix with
netminersetting the correct coinbase of it's opr submissions
OPR Targeting Patch
Targeting Patch
Mainly addressing this issue: #310. This change corrects a bug that enabled miners to set very low difficulties, breaking the targeting code. The result is burning more EC than necessary.
Following this patch, RecordsPerBlock should never be to set to over 50. Anything more than 50 is a complete waste in all scenarios, and this might be enforced in a future release. If you are more concerned about the costs, a cap of 25 is the most any miner would want to submit if there a majority of honest miners. So setting RecordsPerBlock to max 25 is also reasonable.
Note: If you are using the netcoordinator, only the netcoordinator needs to be updated. Not the netminers
Behavior Changes:
- In the performance command, your total submissions might have changed. The miner when quick syncing from disk no longer keeps anything past the last graded opr. Meaning the miner cannot find submissions beyond that. In the future, we will not longer count submissions past 50 in the miner. Another daemon/tool will need to be used to get more statistics. With the growing rate of the chain, keeping all this in the miner is becoming more expensive than the miner should support.
Changelog:
- Targeting now correctly bases it's calculation of the 50th honest opr by difficulty
- Arm64 builds will now be created
- More details in the logs, such as ip addresses of the clients on connect/disconnect
- Some small bug fixes to some cli command used by developers
pegnet decode entrywas using the wrong extid for the version number- Two commands were using the
-oflag, that collision was fixed