ethrex: v8.0.0
Highlights
Simplified Store API
Streamlined the storage backend interface, making it much easier and faster to add new store engine implementations.
Performance
Added parallelized account state merkleization to improve throughput in multi-core setups. We also exploited the fact that many transaction calls execute the same contract code, by adding a dedicated bytecode cache.
On the discovery side, we added discv4 ENR support to filter peers during discovery, allowing for lower resource usage, with improved peer discovery rate. Big thanks to our external contributors for driving this!
Metrics
We've been working on improving operator visibility by adding RPC error rate metrics and expanding peer/network ones both with dedicated rows and panels in Grafana. So networking health is easier to monitor. For more information about the latest state of our dashboards please take a look here.
UX
We added stronger startup checks around database compatibility to make sure we have a way to tell when a re-sync is needed. In addition, the client now warns if CL messages stop arriving for a while and a periodic check for newer releases was added to make staying up to date more straightforward.
Shared Bridge
Ethrex L2s can now participate in permissioned shared bridges and move interact between other ethrex L2s. See the official docs to learn more about this new feature https://docs.ethrex.xyz/l2/fundamentals/shared_bridge.html
ZisK and OpenVM as L1 Proving Backends
Ethrex now supports ZisK and OpenVM backends for proving L1 blocks.
Changelog
Installation and running instructions can be found in our docs
:boom: BREAKING CHANGES
-
due to
9feefd2- compress some tables (PR #5323 by @iovoid):compress some tables (#5323)
-
due to
e08d7e4- shared bridge (PR #5192 by @avilagaston9):shared bridge (#5192)
-
due to
fa6dbc5- fail opening DB without schema version (PR #5597 by @MegaRedHand):fail opening DB without schema version (#5597)
:sparkles: New Features
2e98c07- l1: change folder for dev mode db (PR #5363 by @fedacking)da11206- l2: add optional--abiflag for contracts compilation (PR #5371 by @ilitteri)6ef14c8- l1: code cache rocksdb (PR #5307 by @pablodeymo)fa3a298- l1: add rpc error rates to metrics and panels (PR #5335 by @rodrigo-o)- :arrow_lower_right: addresses issue #5379 opened by @rodrigo-o
d4f04f1- l1: log warning if no CL messages are received in a while (PR #5256 by @SDartayet)- :arrow_lower_right: addresses issue #5234 opened by @MegaRedHand
7d7a6bb- l1: add target and script to run multiple benchmark runs (PR #5368 by @MegaRedHand)c68e76d- l2: add ZisK backend (PR #5392 by @xqft)d7470b7- l2: add helper functions for l2 eth client (PR #5433 by @tomip01)3f0bf4f- l2: prover backend for OpenVM (PR #5412 by @xqft)3fb2e90- l2: accelerate deployer (PR #5394 by @avilagaston9)badb617- l1,l2: allow eip 7702 on generic transactions (PR #5460 by @tomip01)0c0759e- l2: add timed prover API (PR #5478 by @ilitteri)57c98c8- l1: handle parallel merkleization edge case (PR #5389 by @MegaRedHand)- :arrow_lower_right: addresses issue #5387 opened by @MegaRedHand
e48b55c- l1: cache block hash lookup for BLOCKHASH opcode (PR #5434 by @fmoletta)- :arrow_lower_right: addresses issue #5344 opened by @Arkenan
70463a1- l1: periodically fetch node records from peers. (PR #5446 by @lakshya-sky)bb1eb9e- l1: add "eth" entry to local ENR (PR #5453 by @lakshya-sky)- :arrow_lower_right: addresses issue #5066 opened by @MegaRedHand
9feefd2- l1: compress some tables (PR #5323 by @iovoid)e08d7e4- l2: shared bridge (PR #5192 by @avilagaston9)6be9a43- l1: periodically check if there is a newer release available (PR #5322 by @fmoletta)7ec096e- l1: exposing peer related metrics + panel dashboards (PR #5520 by @rodrigo-o)4a3f3cf- l1: enr fork id filtering (PR #5500 by @edg-l)- :arrow_lower_right: addresses issue #5506 opened by @ElFantasma
f450b6e- l1: check DB version compatibility upon startup (PR #5330 by @fmoletta)df6595b- l1: pinexecution-apisversion when runningrpc-compathive suite in Makefile targets (PR #5463 by @fmoletta)78a5d85- l1: detect and update stale enr on ping pong (PR #5507 by @lakshya-sky)- :arrow_lower_right: addresses issue #5488 opened by @MegaRedHand
24d4b64- l2: add optimize option to sdk compile contract (PR #5544 by @tomip01)aa566b3- l1, l2: new database interface (PR #4623 by @damiramirez)fa6dbc5- l1: fail opening DB without schema version (PR #5597 by @MegaRedHand)- :arrow_lower_right: addresses issue #5541 opened by @MegaRedHand
:bug: Bug Fixes
ba5b565- l1: make from and to optional ineth_getLogs(PR #5361 by @MegaRedHand)- :arrow_lower_right: fixes issue #5360 opened by @ManuelBilbao
76434f3- l1, l2: fix mdbook workflow (PR #5386 by @jrchatruc)11e1072- l1: remove deprecated lighthouse flag (PR #5332 by @fmoletta)f505c00- l1: wait before retring on error in dev's block producer (PR #5391 by @ManuelBilbao)16192b4- l1: handle missing payloads in engine_getPayloadBodiesByRange (PR #5408 by @MegaRedHand)- :arrow_lower_right: fixes issue #5403 opened by @rodrigo-o
dc83c60- l1,l2: fix encoding of nodes in witness (PR #5421 by @JereSalo)647e76f- l1: fix P256 precompile name in eth_config response (PR #5418 by @SDartayet)0773636- l2: replace ticker with sleep in dev-mode block producer (PR #5429 by @avilagaston9)44b34c8- l2: fix ZisK install (PR #5430 by @xqft)0ef3272- l1: avoid blocking during fullsync (PR #5445 by @iovoid)b67d7b2- l1: use correct block_num for base_fee in gas_tip_estimator (PR #5444 by @figtracer)e5d1bd6- l1: show proper exported number of blocks (PR #5448 by @fedacking)c00b76c- l1: validate pivot block body during snap sync (PR #5451 by @MegaRedHand)7a0ede3- l2: fix OpenVM release workflow (PR #5461 by @xqft)1bebff3- l1: revert "refactor chainconfig (#5233)" (PR #5464 by @fmoletta)2c81438- l1: sending ping to each neighbor found (PR #5481 by @ElFantasma)- :arrow_lower_right: fixes issue #5480 opened by @lakshya-sky
f07b2b3- l1: record new inbound peers as new discoveries (PR #5498 by @MegaRedHand)610df53- l1: reduce spammy trace-level logs during snap-sync (PR #5492 by @MegaRedHand)2e644ab- l1: preventing invalid contact errors from propagating on ENRRequest handling (PR #5496 by @ElFantasma)7722c65- l1: improve import benchmark (PR #5525 by @MegaRedHand)bce7bb1- l1: properly set p2p flag as disabled (PR #5540 by @fedacking)2491671- l1: skip fork-choice update if snap-syncing (PR #5548 by @MegaRedHand)- :arrow_lower_right: fixes issue #5547 opened by @MegaRedHand
b73695c- l1: ignore FCUs if state is not reachable (PR #5563 by @MegaRedHand)- :arrow_lower_right: fixes issue #5558 opened by @MegaRedHand
1c4851c- l1: use correct target to get closest neighbors in discv4 (PR #5595 by @lakshya-sky)28a07e3- l1: validate block body on import (PR #5606 by @MegaRedHand)- :arrow_lower_right: fixes issue #5601 opened by @mpaulucci
a1a3c69- l1: error on missing parent (PR #5559 by @iovoid)8d83b00- l1: continue on PeerTable call timeout (PR #5642 by @MegaRedHand)- :arrow_lower_right: fixes issue #5637 opened by @rodrigo-o
:zap: Performance Improvements
06dc722- l1: avoid temporary allocations when decoding and hashing trie nodes (PR #5353 by @MegaRedHand)d3c0d11- l1,l2: parallel merkleization (top-down 16-ways) (PR #5377 by @Oppen)3e4d1e8- l1: improve rlp encoding (PR #5350 by @edg-l)fcbbbb3- l1: change encode_to_vec().len() -> length(), avoiding encoding to calc rlp length (PR #5374 by @edg-l)46096d1- l1: use our keccak implementation for receipt blooms (PR #5454 by @MegaRedHand)80ea03f- levm: use unchecked swap (PR #5439 by @iovoid)1e75cb0- l1,l2: avoid unnecessary code hashing (PR #5397 by @Oppen)
:recycle: Refactors
926247b- l2: decouple guest program IO (PR #5314 by @ilitteri)c9fd96e- levm: remove unused variants from enum (PR #5427 by @iovoid)c7ec3b3- l1: refactor chainconfig (PR #5233 by @SDartayet)- :arrow_lower_right: addresses issue #4720 opened by @SDartayet
f2b2006- l1: make improvements to public functions used by ethrex_replay (PR #5416 by @JereSalo)8fb4b27- l1: avoid recovering sender two times when txs are received (PR #5419 by @MegaRedHand)e982a7d- l2: improve SQL store initialization (PR #5479 by @ManuelBilbao)5dd2805- l1,l2,levm: remove dead code (PR #5452 by @iovoid)b9bca06- l1: useU256::full_mulinop_mulmod(PR #5526 by @MegaRedHand)
:white_check_mark: Tests
d69bedc- l1: verify we reject invalid iat claims. (PR #5245 by @lakshya-sky)- :arrow_lower_right: addresses issue #5074 opened by @MegaRedHand
:wrench: Chores
ab151d2- l2: implement rkyv traits forNode, serialize them directly into the prover guest program instead of its RLP encoding (PR #5224 by @xqft)a3f90a9- l1, l2: bump version for release 7.0.0 (PR #5313 by @lferrigno)1be3fe7- l2: add help for tdx failure jobs (PR #5367 by @tomip01)82d4ead- l1: remove unnecesary tx log. (PR #5381 by @mpaulucci)7559ed1- l1: renaming to removemetrics_prefix from file names (PR #5385 by @rodrigo-o)- :arrow_lower_right: addresses issue #5378 opened by @rodrigo-o
0c7be48- l1,l2: update comparission chart in README (PR #4819 by @ManuelBilbao)3be122c- l2: add L2 CODEOWNERS (PR #5262 by @ilitteri)ed949d9- l1,l2: ignore L1 and L2 dev mode database directories (PR #5273 by @JereSalo)0d3ec53- l1: bump default gas limit to 60M (PR #5470 by @MegaRedHand)dd07e47- l2: add prover performance/optimization docs (PR #4857 by @xqft)538da5c- l1: add a explicit blockheader partialeq impl due to oncelock (PR #5487 by @edg-l)- :arrow_lower_right: addresses issue #5125 opened by @MegaRedHand
823cf77- l2: use ZisKmulmodsyscall for levmop_mulmod(PR #5491 by @xqft)8160d22- l2: use ZisK patched substrate-bn for bn254 G1 mul (PR #5529 by @xqft)8c8f758- l1: remove unused rocksdb feature in ethrex-trie (PR #5543 by @MegaRedHand)891528d- l1: remove hardcoded platform for ethrex in docker compose (PR #5594 by @ManuelBilbao)