Ontology Upgrades Mainnet with Ethereum-Inspired EVM Features
Ontology, a decentralized AI data infrastructure project, is upgrading its mainnet to v3.1.2 on August 21st at block height 20,800,000.
The upgrade introduces four Ethereum Virtual Machine (EVM) features: PUSH0, BASEFEE, MCOPY, and transient storage.
These EVM features are aimed at improving smart contract efficiency and easing the migration of Ethereum-based code to Ontology.
PUSH0 reduces gas costs for certain operations by allowing a zero-cost opcode for pushing the value 0 onto the stack.
BASEFEE enables dynamic fee handling and better integration with EIP-1559-style mechanisms, allowing smart contracts to access the base fee of the current block.
MCOPY provides a more efficient way to copy memory regions, lowering gas consumption for memory-heavy operations.
Transient storage adds temporary storage that persists only within a transaction, offering cheaper alternatives for certain use cases like reentrancy locks.
Node operators must update their software to v3.1.2 before the network reaches block height 20,800,000 to apply the upgrade and avoid potential disruptions in block validation and transaction processing.