Repository navigation
Conversation
There was a problem hiding this comment.
Claude Code Review
Claude Code Review is paused for this repository because its GitHub organization is not linked to your Claude organization.
To turn it back on, one person needs both roles: owner of the GitHub organization (or the account owner, for a personal repository) and admin or owner of your Claude organization. If that is not you, pass this on to someone who is.
Open Organization settings, Git providers and click Link next to the GitHub organization's name. If it is not listed, click Enable GitHub integration or Connect your GitHub first, whichever the page shows.
New pull requests are then reviewed as before. To get a review on one that is already open, someone with write access can comment @claude review.
Tip: disable this comment in your organization's Code Review settings.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| let below_floor = sign_eip1559_transfer( | ||
| wallet.chain_id, | ||
| &wallet.inner, | ||
| 0, |
| let at_floor = sign_eip1559_transfer( | ||
| wallet.chain_id, | ||
| &wallet.inner, | ||
| 0, |
|
|
||
| // reth pools low-fee txs for future execution when baseFee drops, | ||
| // so they are accepted into the queued set, not rejected outright. | ||
| let raw = sign_eip1559_transfer(wallet.chain_id, &wallet.inner, 0, 500_000, 500_000)?; |
# Conflicts: # bin/morph-reth/src/main.rs # crates/node/src/test_utils.rs
# Conflicts: # bin/morph-reth/src/main.rs # crates/node/src/test_utils.rs
Summary
DefaultTxPoolValueswithminimal_protocol_basefee = MORPH_BASE_FEE(1_000_000 wei/0.001 Gwei) before CLI parsing inbin/morph-reth/src/main.rs, replacing Ethereum L1's7 weidefault.--txpool.minimal-protocol-fee(including lowering to7or0if L2baseFeeis ever reduced in the future);--helpalso reflects the1000000default.TestNodeBuilderwith theMORPH_BASE_FEEdefault (with.with_minimal_protocol_basefee(u64)for override testing) and add CLI + E2E txpool tests.Motivation
Morph fixes L2
baseFeeatMORPH_BASE_FEE(1_000_000 wei). With reth's Ethereum L1 default (MIN_PROTOCOL_BASE_FEE = 7 wei):7 <= maxFeePerGas < 1_000_000were accepted byeth_sendRawTransactionand parked indefinitely inbasefee_pooleven though they can never be included in a block.basefee_pooltransactions still advanceeth_getTransactionCount("pending"), causing wallets/SDKs to issue follow-up transactions atnonce + 1that remain stuck behind the unminable transaction.< MORPH_BASE_FEEupfront maps to RPCtransaction underpriced(PoolErrorKind::FeeCapBelowMinimumProtocolFeeCap), andPoolError::is_bad_transaction()returnsfalse, so P2P peers (such asmorph-geth) relaying sub-basefee transactions are not penalized.Changes
bin/morph-reth/Cargo.toml,Cargo.lock: add workspacereth-node-coredependency forDefaultTxPoolValues.bin/morph-reth/src/main.rs: callinit_morph_txpool_defaults()prior toCli::parse()and add CLI unit tests for default and--txpool.minimal-protocol-feeoverrides.crates/node/src/test_utils.rs: defaultTestNodeBuildertoMORPH_BASE_FEEand exposewith_minimal_protocol_basefee.crates/node/tests/it/txpool.rs: verify< MORPH_BASE_FEEis rejected without inflatingeth_getTransactionCount("pending"), exactMORPH_BASE_FEEwith0tip is accepted and mined, and loweringminimal_protocol_basefeerestores queuing.Test Plan
cargo +1.95.0 fmt --all -- --check— passedcargo +1.95.0 clippy --workspace --all-targets -- -D warnings— passedcargo +1.95.0 test -p morph-reth— 5/5 passedcargo +1.95.0 test -p morph-node --features test-utils --test it txpool— 13/13 passedSummary by CodeRabbit