Closed jyc228 closed 6 months ago
The recent updates predominantly involve renaming the ExperimentalZkTrie
configuration and related functionality to KromaZKTrie
across various components of the codebase. This renaming affects flags, configuration structures, and logic pertaining to the Zero-Knowledge (ZK) state trie implementation, indicating a shift towards a more finalized or specific use case, possibly related to the Kroma project. The modifications span across command-line interfaces, utility flags, core blockchain logic, Ethereum back-end configurations, and trie database implementations.
Files | Change Summary |
---|---|
cmd/geth/config.go , cmd/geth/main.go |
Renamed ExperimentalZkTree to KromaZKTrie in cfg.Eth and utils.ExperimentalZkTrie to utils.KromaZKTrie . |
cmd/utils/flags.go |
Renamed the flag ExperimentalZkTrie to KromaZKTrie , updated Usage description, and added a default Value of true . |
core/blockchain.go , core/state/database.go |
Renamed ExperimentalZkTrie to KromaZKTrie in CacheConfig and cachingDB structs, affecting ZK state trie logic. |
eth/backend.go , eth/ethconfig/config.go |
Renamed ExperimentalZkTrie to KromaZKTrie in New function and Config struct, impacting Ethereum configuration. |
internal/ethapi/api.go |
Modified newStateTrie method to check for IsKromaZK instead of IsZkStateTrie , affecting database logic flow. |
trie/database.go , trie/merkle_trie.go |
Renamed ExperimentalZkTrie to KromaZKTrie in Config struct and updated method calls to IsKromaZK() , affecting trie implementation selection. |
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?
@0xHansLee For now, I'll only reflect it in KromaZKTrie and not the rest.
Summary by CodeRabbit
ExperimentalZkTree
toKromaZKTrie
across various configurations and methods to reflect the new naming convention for ZK state trie usage.KromaZKTrie
with a default value oftrue
, enhancing user control over this feature.