Work Units: A Multidimensional Approach to Smart Contract Gas Estimation
摘要
Legacy blockchain protocols and their forks rely on gas metering algorithms primarily designed for economic fee calculation and resource limitation. While effective for constraining transaction execution, recent Ethereum data indicate that these approaches fail to address the complex synchronization challenges inherent in distributed consensus systems. This paper introduces Work Units, a multidimensional approach to smart contract resource estimation developed for the Tycho blockchain protocol. Unlike conventional gas metrics that serve as static limiting factors, Work Units function as a dynamic feedback mechanism that enables deterministic consensus synchronization across distributed nodes. This new approach accounts for message processing, dictionary operations, virtual machine gas consumption, account updates, and outgoing messages to calculate block release time deterministically, regardless of individual node hardware variations. The proposed system represents a significant advancement over existing methods for calculating gas costs by serving dual purposes: precise resource measurement and distributed consensus coordination, making it particularly suitable for high-performance DAG-based blockchain architectures.