Skip to content

Etica Smart Contract v3 - Guardian Hardfork

Choose a tag to compare

@kevin-wad kevin-wad released this 11 Sep 09:42
· 8 commits to master since this release

Etica Smart Contract v3 - Guardian Hardfork

This release introduces significant updates and improvements to the Etica smart contract, implementing the Guardian Hardfork. The new version enhances security, efficiency, and functionality of the Etica protocol for open source medical research.

Key Changes

RandomX Mining Implementation
Replaced the previous mining function mint() with mintrandomX() to support RandomX mining algorithm
Added new state variables and mappings to handle RandomX mining:
randomxSealSolutions
randomxBlob
randomxSeedhash
SEEDHASH_EPOCH_BLOCKS
randomxBlobfirstpart

Security Enhancements
Implemented additional checks in staking functions to prevent excess bosom issues
Added a limit of 100 stakes per address to prevent potential abuse

Mining Difficulty Adjustments
Modified _reAdjustDifficulty() function to handle potential overflows and underflows

Protocol Updates
Changed _totalMiningSupply to 15,750,000 ETI to account for guardian hardfork tokenomics
Updated initiatormsg to reflect the new Guardian Hardfork and Etica v3

Gas Optimization
Refactored several functions to improve gas efficiency

Other Improvements
Added new events for better tracking of protocol actions
Implemented additional error checks and require statements throughout the contract
Updated comments and documentation for improved readability and understanding

Upgrading
Web apps should update their EticaRelease.json file to support the new RandomX mining algorithm and other protocol changes. The upgrade is not backwards compatible, so all web apps or wallets must update to continue participating in the Etica network