github morph-l2/morph-reth v1.5.0

one hour ago

Summary

morph-reth v1.5.0 is a recommended upgrade for all nodes and an urgent one for RPC nodes that accept user transactions. On v1.4.1, a MorphTx that pays gas in an ERC20 fee token is accepted by eth_sendRawTransaction but parked in the pool's queued sub-pool whenever the sender's ETH balance is below gas_limit × max_fee_per_gas + value, which is the case for every gasless sender (earlier releases compute the same pool cost). A transaction parked there is never built into a block, and it is not announced to peers when it arrives. v1.5.0 fixes this, together with a sequencer chain split on clock step-back, a follower stall caused by relayed blocks with corrupted unhashed fields, a sequencer memory leak from discarded empty payloads, and transaction gossip being ignored after startup. The database format is unchanged and the built-in mainnet and hoodi chains need no configuration change. Custom genesis files and --morph.max-tx-payload-bytes do need a check before upgrading: see the upgrade notes.

Highlights

  • Token-fee MorphTx no longer stranded in queued (#200): For a MorphTx with fee_token_id > 0, the pool's cost() now reports only the ETH value, matching go-ethereum's executableTxFilter. A sender holding fee tokens but no ETH now lands in pending, so its transaction is propagated and mined. The local --rpc.txfeecap still applies to gas_limit × max_fee_per_gas. Because reth's pool no longer sees the gas budget, the Morph pool maintenance task now revalidates the pool against every new head:
    • It checks the L1 data fee for every sender, and the fee-token balance and fee_limit for every MorphTx.
    • It judges each transaction on its own, including those parked behind a nonce gap.
    • It removes only the first offending transaction per sender, so the pool parks the rest.
    • It re-checks every removal at the canonical head before applying it. State that cannot be read never evicts a transaction.
  • Transaction gossip accepted from startup (#220): reth ignored peer transaction announcements until the engine imported its first block after start. This included the one-off pool announcement a peer sends when a session opens. A restarting sequencer therefore silently lost every transaction RPC nodes were holding for it, and the affected senders' later transactions waited behind the missing nonces. The network is now marked idle at startup, as morph-geth accepts transactions from process start.
  • The sequencer never assembles a block older than its parent (#221): When the sequencer's clock stepped back, or HA leadership moved to a node whose clock was behind, the sequencer built a block that every follower rejected (TimestampIsInPast). It then imported that block itself and split the chain. The requested timestamp is now raised to the earliest one the header rules accept, and a warning is logged whenever this happens.
  • Followers no longer stall on relayed blocks with corrupted unhashed fields (#219): The block hash and the sequencer signature do not cover NextL1MsgIndex or the withdraw trie root. A corrupted copy of a valid block used to put the block's hash in reth's invalid-header cache, so the follower then refused the honest block until it restarted or the cache entry had been hit 128 times. These mismatches are now treated as transient errors and are not cached.

Other Changes

  • Sequencer memory (#218): Empty payloads are now built without executed-block artifacts. The empty candidates that the CL discards on every fast tick no longer accumulate in the engine tree. Each one used to take about 7.6 KB, at 0.5 to 1 per second while the chain was idle.
  • Payload limit read from genesis (#198): maxTxPayloadBytesPerBlock is now read from the chain genesis, including a custom --chain <file>. The bundled mainnet and Hoodi genesis files now carry 737280 (720 KiB) instead of the leftover 122880. See the upgrade notes.
  • Production build profile (#223): The reproducible profile now uses panic = "unwind" and keeps symbols and line tables. A panic in a non-critical task (RPC handler, payload job, P2P session) no longer aborts the process before its in-memory blocks are persisted, and crash backtraces now name the function and source line.
  • Fee-token logs (#215): The fee-token deduction and refund Transfer logs now stay in the EVM journal instead of being finalized in the middle of the transaction. Every execution result carries them in go-ethereum's order, and gas is unchanged.
  • SP1 zkVM guest builds (#226): Supported through the opt-in engine feature.
  • Grafana dashboard (#224): Adds an RPC requests-per-minute panel and per-node tables for build info and storage.
  • Stale code comments corrected (#216). CI actions bumped (#213).

Breaking Changes & Upgrade Notes

  • No database migration. v1.5.0 uses the same database format as v1.4.1. A rolling restart is enough, and rolling back means swapping the binary.
  • Custom genesis files (--chain <file>) are breaking if the file still carries maxTxPayloadBytesPerBlock: 122880. The file's value is now enforced as the consensus limit on block import. v1.4.x ignored the field and always enforced 720 KiB. If the file holds the old 122880, as older copies of the mainnet genesis do, the node rejects every mainnet block with more than 120 KiB of L2 transaction payload. Either use the built-in --chain mainnet / --chain hoodi, or set the field to 737280. A file that omits the field defaults to 737280. The built-in chains are unaffected.
  • --morph.max-tx-payload-bytes changed meaning. It no longer defaults to a fixed 720 KiB. It now defaults to the chain's genesis limit and can only lower it. A node started with a value above the consensus limit refuses to start, with --morph.max-tx-payload-bytes (…) exceeds the chain consensus limit (…).
  • Transactions stuck on v1.4.x are carried over by a graceful restart. Transactions submitted over RPC are local. On a graceful shutdown (SIGTERM or SIGINT, not SIGKILL) reth writes them, including those in queued, to <datadir>/txpool-transactions-backup.rlp, and it validates and reinserts them on the next start unless --txpool.disable-transactions-backup is set. On v1.5.0 a token-fee MorphTx whose sender can pay the fee in tokens then lands in pending, so it is propagated and executed. Transactions that no longer validate are dropped. To discard the backup instead, delete the file before starting v1.5.0.
  • Upgrade every node, starting with RPC nodes that accept user transactions. There is no rollout-order constraint.
  • No cross-client coordination. There are no consensus rule changes for the built-in chains, so morph-geth and the morph node need no matching release.

Known Issues

  • cargo deny reports RustSec advisories that were published after this release was cut:

    • hickory-proto, hickory-net and hickory-resolver 0.26.1: 23 advisories, fixed in 0.26.2. These crates are pulled in only by reth-dns-discovery.
    • libz-sys 1.1.31: RUSTSEC-2026-0544, fixed in 1.1.33.
    • url 2.5.8: RUSTSEC-2026-0592, fixed in 2.5.9.

    The fixes are lockfile-only and will follow in a patch release.

All Changes

  • chore: prepare v1.5.0 release (#231)
  • docs: correct stale and misleading code comments (#216)
  • fix(evm): support SP1 zkVM guest builds (#226)
  • fix(node): accept peer transactions before the first block after startup (#220)
  • refactor(revm): keep fee-token logs in the journal instead of finalizing mid-transaction (#215)
  • fix(txpool): keep token-fee MorphTx pending and revalidate fees per block (#200)
  • feat(chainspec): read payload limit from custom genesis (#198)
  • fix(payload): skip execution artifacts for empty blocks (#218)
  • fix(consensus): do not cache rejections caused by unhashed payload fields (#219)
  • fix(engine-api): never assemble a block older than its parent (#221)
  • fix(build): keep panics unwinding in the reproducible profile (#223)
  • feat(metrics): add RPC requests panel and per-node Overview tables (#224)
  • chore(ci): bump the actions-weekly group across 1 directory with 2 updates (#213)

Binaries

System Architecture Binary
x86_64 morph-reth-1.5.0-x86_64-linux.tar.gz
aarch64 morph-reth-1.5.0-aarch64-linux.tar.gz
Docker ghcr.io/morph-l2/morph-reth:v1.5.0

Don't miss a new morph-reth release

NewReleases is sending notifications on new releases.