github taikoxyz/alethia-reth v1.5.1

one hour ago

alethia-reth v1.5.1

v1.5.1 is a routine maintenance release, and we recommend that all operators upgrade. It moves alethia-reth to OP Reth op-v2.7.0-1 (reth v2.7.0) to pick up a proof-history fix, aligns several block import checks with taiko-geth, and relaxes the input limits of debug_executionWitnessForTxList. It contains no hardfork or fork-schedule changes. Neither the reth database nor the proof-history store needs a migration or resync.

Breaking and operator-visible changes

  • Block import now enforces the fixed Unzen header values, as taiko-geth does: parentBeaconBlockRoot must be zero, blobGasUsed and excessBlobGas must be 0, and requestsHash must be the empty requests hash. From Unzen, which activates Osaka on Taiko, blocks larger than 8 MiB RLP-encoded are rejected (EIP-7934).
  • eth_getProof now rejects requests for more than 1024 storage keys. Stock reth v2.7 added this limit (paradigmxyz/reth#27716); proof-history nodes serve the method through their own handler, which now applies the same limit and error message.
  • RPC changes inherited from reth v2.7:
    • eth_estimateGas now respects --rpc.gascap.
    • trace_callMany without a block and trace_filter without a block range now default to latest. Callers that need pending state or a historical range must specify it.
    • eth_callMany, trace_callMany, debug_traceCallMany and eth_callBundle now have upstream work limits.
  • --rpc.max-tracing-requests, --rpc.max-blocking-io-requests and --rpc.proof-permits now reject 0.

CLI changes

New in reth v2.7:

  • --engine.backfill-threshold (default 32): the largest gap between the local head and the forkchoice head that the node closes by downloading the missing blocks directly. Larger gaps start a pipeline backfill. Values above 1024 are clamped.
  • --rpc-cache.max-blocks-bytes (default 2 GiB), --rpc-cache.max-receipts-bytes (1 GiB) and --rpc-cache.max-bals-bytes (500 MiB) cap the estimated memory of each RPC cache. The entry count limits still apply.
  • --rpc-cache.idle-timeout (default 1h) evicts cached blocks, receipts and block access lists that have not been hit for that long. 0s disables it.

Default changes inherited from reth v2.7:

  • --engine.sender-recovery-cache is now on by default. Turn it off with --engine.sender-recovery-cache=false.
  • --rpc-cache.max-blocks: 5000 → 1000, and --rpc-cache.max-receipts: 2000 → 500.
  • The default --engine.persistence-backpressure-threshold goes from max(100, 2 × persistence threshold) to max(16, 2 × persistence threshold). It only changes when --engine.persistence-threshold is below 50. The default threshold (50) and the 128 used in Taiko deployments keep the same value.

Proof history

  • Fixes historical eth_getProof returning an account's current state instead of its state at the requested block (#265). A reorg that unwound proof-history blocks could leave an index entry behind, and once the blocks were replayed, later reads skipped the account's history. The fix comes from ethereum-optimism/optimism#23334.
  • The fix stops new bad entries but does not repair a store that already has them. A store is affected if its historical eth_getProof responses do not verify against the requested block's state root; on Hoodi this stopped raiko2 preflight. To rebuild an affected store, create an empty file named taiko-proof-history-rebuild in the --proofs-history.storage-path directory and restart the node. The rebuild runs the same steps as the v1.5.0 upgrade, including the hours-long current-state copy on mainnet.

Block building

  • taikoAuth_txPoolContent* and mempool-based payload building now keep separate allowances for transactions that overflow the zk gas budget for the first time: one for transactions with a gas limit above 1,000,000 and one for smaller transactions. Once the large-transaction allowance is used up, selection skips large candidates that have not overflowed before and keeps filling the list with smaller transactions. Exhausting the small-transaction allowance still stops selection. A call can therefore spend up to one more list gas limit of execution on first-time overflows. Block import, sealing and prover execution are unchanged.

Debug RPC

  • debug_executionWitnessForTxList, which is only registered with --proofs-history, no longer recompresses the submitted transaction list and rejects it when the result exceeds one blob. Derivation sets no such limit and accepts any zlib encoding. The raw-size guard goes from 16 MiB to 64 MiB. Witnesses for lists that were accepted before are unchanged.
  • Requests must still fit within --rpc.max-request-size (15 MiB by default), and hex encoding doubles the size of the list. Raise the limit on nodes that serve raiko2 if larger lists need to get through.

Other changes

  • On 32-bit targets, such as zkVM guests, Unzen now charges the per-word and per-byte gas of KECCAK256, CALLDATACOPY, CODECOPY, EXTCODECOPY, MCOPY and LOG0–LOG4 for lengths that do not fit in 32 bits the same way 64-bit builds do. 64-bit node binaries are unaffected.
  • The EIP-4396 base fee calculation now uses taiko-geth's unsigned 64-bit wrapping arithmetic for the gas target multiplication and the parent block time subtraction. This only matters for values far outside what a real chain produces.

Dependencies

  • reth moves from OP Reth op-v2.6.0-2 to op-v2.7.0-1 (ethereum-optimism/reth@ed91041), which is reth v2.7.0 plus upstream backports. Among them: work limits for eth_callMany, trace_callMany, debug_traceCallMany and eth_callBundle (paradigmxyz/reth#28314, paradigmxyz/reth#28253), deferred static-file truncation on reorg (paradigmxyz/reth#28370), and replaying a block's transactions through the block executor for tracing (paradigmxyz/reth#28266).
  • reth-optimism-trie moves to ethereum-optimism/optimism@b636ba6 on develop, which includes ethereum-optimism/optimism#23334. No op-reth release has that fix yet; we will move back to a release tag once one does.
  • Also upgraded: alloy 2.4 → 2.5, revm 43.0.2 → 43.0.3, revm-inspectors 0.43 → 0.44, and reth-codecs / reth-primitives-traits 0.7 → 0.8.

Full changelog: v1.5.0...v1.5.1

Don't miss a new alethia-reth release

NewReleases is sending notifications on new releases.