Number: MIP-5
Title: DGP Version 3
Type: Standard
Status: Final
Authors: nibbles <keith@metrixcoin.com>
seqSEE <sarah@sqdmc.net>
squidicuz <squid@sqdmc.net>
Created: 2023-05-25
This MIP is a proposal to redefine the Governance contract and to redeploy the Budget, DGP and Governance contracts which process block rewards as well as provide and control the EVM gas schedule, block size, minimum gas price, block gas limit, transaction fee rates, governor collateral and budget fees.
DGP Version 2 (DGPv2) was found to have a bug in the governance winner selection process. When new governors enroll towards the end of the rewards cycle (48 hours) the issue causes a high risk for competing forks, orphaned governor rewards, EVM transactions to be delayed significantly and the mempool to fill up.
If an immature governor is selected as the winner, it becomes stuck in the front of the queue. This check can be done by adding a check block.number - 1920 >= governors[governorAddresses[i]].blockHeight
in the currentWinner
function.