Closed jyc228 closed 5 months ago
The update primarily focuses on renaming the ExperimentalZkTree
to KromaZKTrie
across various components of the codebase, indicating a shift or rebranding towards a specific Zero-Knowledge Trie implementation. This encompasses changes in flag names, usage descriptions, categories, default values, and internal logic adjustments to support the new naming convention. Additionally, there's an enhancement in error messaging and the introduction of new methods to improve the handling and functionality of the Zero-Knowledge Trie components.
Files | Change Summary |
---|---|
cmd/geth/config.go , cmd/geth/main.go , eth/ethconfig/config.go |
Renamed ExperimentalZkTree to KromaZKTrie . In makeFullNode function, updated cfg.Eth struct assignment. In main.go , updated utils.ExperimentalZkTrie to utils.KromaZKTrie . |
cmd/utils/flags.go , trie/database.go |
Modified functionality related to the flag ExperimentalZkTrie to KromaZKTrie , including changes in flag name, usage description, category, and default value. Renamed in Config struct and related methods. |
core/blockchain.go , eth/backend.go |
Renamed struct fields and related functions from ExperimentalZkTrie to KromaZKTrie . Updated CacheConfig struct in blockchain.go . |
core/state/database.go , trie/merkle_trie.go |
Updated logic for Kroma ZK instead of ZK state trie, affecting trie type checks and logic flow. Replaced IsZkStateTrie() with IsKromaZK() . |
internal/ethapi/api.go |
Modified newStateTrie function to check for IsKromaZK instead of IsZkStateTrie in the database, affecting logic flow based on the database type. |
miner/payload_building.go |
Adjusted logic for block time based on Kroma chain configuration. |
trie/zk/merkle_tree.go |
Updated error messages in Delete and Prove methods to include the level. Refactored the Copy method for root node handling. |
trie/zk/tree_path.go |
Updated NewTreePathFromBig function to use common.Big2 for calculating the bit and added ToBigInt method. |
trie/zk/merkle_tree_node.go , trie/zk/merkle_tree_test.go |
Revised logic for child node hashes and added tests for Merkle tree operations. |
trie/zk/util.go |
Added copyNode function to enhance TreeNode structure copying. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
KromaZKTrie
as a replacement forExperimentalZkTree
, enhancing the blockchain's trie system for better performance and reliability.Refactor
KromaZKTrie
integration.Bug Fixes
KromaZKTrie
system.