Skip to content

Conversation

@ranchalp
Copy link

@ranchalp ranchalp commented Jun 9, 2025

1. Purpose or design rationale of this PR

Update the L2 fee calculation for the feynman upgrade. Post feynman, the new L2 fee is:

l2_fee(tx) = gasUsed(tx)*proving_fee + gasUsed(tx)*l2_base_fee #vanilla EIP-1559, sequencing fee, negligible cost

where l2_base_fee follows vanilla EIP-1559, and proving_fee is set via the existing overhead parameter. How we update smoothly the overhead and scalar parameter remains to be decided.

2. PR title

Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:

  • build: Changes that affect the build system or external dependencies (example scopes: yarn, eslint, typescript)
  • ci: Changes to our CI configuration files and scripts (example scopes: vercel, github, cypress)
  • docs: Documentation-only changes
  • feat: A new feature
  • fix: A bug fix
  • perf: A code change that improves performance
  • refactor: A code change that doesn't fix a bug, or add a feature, or improves performance
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • test: Adding missing tests or correcting existing tests

3. Deployment tag versioning

Has the version in params/version.go been updated?

  • This PR doesn't involve a new deployment, git tag, docker image tag, and it doesn't affect traces
  • Yes

4. Breaking change label

Does this PR have the breaking-change label?

  • This PR is not a breaking change
  • Yes

Summary by CodeRabbit

  • New Features

    • Enhanced base fee calculation to be aware of network upgrades, using updated algorithms after specific forks.
    • Base fee computation now explicitly incorporates the current block's timestamp for more accurate fee adjustments.
  • Bug Fixes

    • Improved handling of base fee calculation in scenarios where block headers or times are missing or at network upgrade boundaries.
  • Chores

    • Updated internal constants and configuration methods for fee adjustment parameters.
    • Adjusted tests and supporting code to align with the new base fee calculation logic and parameters.

@coderabbitai
Copy link

coderabbitai bot commented Jun 9, 2025

Walkthrough

This change introduces fork-aware base fee calculation logic in the protocol. The CalcBaseFee function now accepts the current header time and selects between legacy and EIP-1559 style base fee adjustment based on fork conditions. Constants and configuration methods are updated, and all call sites are refactored to pass the new time parameter.

Changes

File(s) Change Summary
consensus/misc/eip1559.go Refactored CalcBaseFee to accept header time; added fork-aware logic, EIP-1559 base fee functions, and helpers.
params/config.go Added BaseFeeChangeDenominator() and ElasticityMultiplier() methods to ChainConfig.
params/protocol_params.go Renamed constants for base fee denominator and elasticity multiplier; reduced InitialBaseFee value.
core/state_processor_test.go, consensus/misc/eip1559_test.go Updated tests to pass the new currentHeaderTime argument to CalcBaseFee.
core/chain_makers.go, core/genesis.go, core/tx_pool.go, Refactored all calls to CalcBaseFee to include the header time parameter.
eth/catalyst/api.go, eth/gasprice/feehistory.go, internal/ethapi/api.go, miner/scroll_worker.go Updated all usages of CalcBaseFee to pass the block's timestamp as the new argument.
params/version.go Incremented patch version constant from 60 to 61.

Sequence Diagram(s)

sequenceDiagram
    participant Caller
    participant CalcBaseFee
    participant calcBaseFeeFeynman
    participant calcBaseFeeEIP1559
    participant extractBaseFeeEIP1559

    Caller->>CalcBaseFee: CalcBaseFee(config, parent, parentL1BaseFee, currentHeaderTime)
    alt Clique shadow fork
        CalcBaseFee-->>Caller: return fixed 0.01 Gwei
    else if before Feynman or parent nil
        CalcBaseFee-->>Caller: return legacy calcBaseFee
    else
        CalcBaseFee->>calcBaseFeeFeynman: call with config, parent, overhead
        calcBaseFeeFeynman->>calcBaseFeeEIP1559: call with config, parent
        calcBaseFeeEIP1559->>extractBaseFeeEIP1559: call with config, parent.BaseFee
        extractBaseFeeEIP1559-->>calcBaseFeeEIP1559: returns adjusted base fee
        calcBaseFeeEIP1559-->>calcBaseFeeFeynman: returns EIP-1559 base fee
        calcBaseFeeFeynman-->>CalcBaseFee: adds overhead and returns
        CalcBaseFee-->>Caller: return fork-aware base fee
    end
Loading

Possibly related PRs

  • scroll-tech/go-ethereum#1189: Refactors L2 base fee coefficient management in the same file, introducing dynamic initialization and update logic, directly related to the base fee calculation changes here.
  • scroll-tech/go-ethereum#1183: Adds CLI/configuration support for L2 base fee scalar and overhead, related by affecting base fee logic but focusing on configuration rather than calculation.
  • scroll-tech/go-ethereum#1169: Adjusts constants and parameters inside base fee calculation logic without changing signature or adding new functions, related at the base fee calculation level.

Suggested labels

bump-version

Suggested reviewers

  • colinlyguo
  • georgehao

Poem

A rabbit hopped through code so neat,
Forks and fees beneath its feet.
With time-aware hops and constants anew,
It balanced the gas as only bunnies do.
EIP-1559 now knows the time—
Hop on, dear devs, the protocol’s fine!
🐇⏳


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 52ee2b3 and 67f8949.

📒 Files selected for processing (2)
  • miner/scroll_worker.go (1 hunks)
  • params/version.go (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • params/version.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • miner/scroll_worker.go
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: test
  • GitHub Check: Analyze (go)
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7fbc35d and c68b20339b17f11ea3e0e00a3b5e089a6b47113c.

📒 Files selected for processing (3)
  • consensus/misc/eip1559.go (1 hunks)
  • params/config.go (2 hunks)
  • params/protocol_params.go (1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (2)
params/config.go (1)
params/protocol_params.go (2)
  • DefaultBaseFeeChangeDenominator (124-124)
  • DefaultElasticityMultiplier (125-125)
consensus/misc/eip1559.go (3)
params/config.go (1)
  • ChainConfig (634-677)
core/types/block.go (1)
  • Header (69-122)
params/protocol_params.go (1)
  • InitialBaseFee (126-126)
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: test
  • GitHub Check: build-mock-ccc-geth
  • GitHub Check: check
  • GitHub Check: Analyze (go)
🔇 Additional comments (4)
params/protocol_params.go (1)

124-126: LGTM! Appropriate renaming for configurable parameters.

The renaming from BaseFeeChangeDenominator and ElasticityMultiplier to DefaultBaseFeeChangeDenominator and DefaultElasticityMultiplier correctly indicates these are now default values that can be accessed through chain configuration methods, supporting the Feynman fork's conditional fee calculation logic.

params/config.go (1)

1022-1030: LGTM! Clean accessor methods for EIP-1559 parameters.

These methods properly expose the default base fee parameters, allowing future customization per chain configuration while maintaining backward compatibility.

consensus/misc/eip1559.go (2)

110-116: Verify the double application of base fee calculation.

The implementation applies calcBaseFee twice when at the Feynman fork:

  1. First, it calculates baseFeeEIP1559 using the new EIP-1559 logic
  2. Then, it applies calcBaseFee again on this intermediate result

This seems to apply the scalar and overhead adjustments twice. Based on the PR description, the formula should be:

l2_fee(tx) = gasUsed(tx)*proving_fee + gasUsed(tx)*l2_base_fee

Where l2_base_fee follows EIP-1559. The current implementation might not align with this formula.

Could you clarify if this double application is intentional? If the goal is to have the EIP-1559 mechanism determine the base component before applying L2-specific adjustments, please add a comment explaining this design choice.


118-162: Well-implemented EIP-1559 base fee calculation.

The calcBaseFeeEIP1559 function correctly implements the standard EIP-1559 base fee adjustment logic:

  • Proper handling of the first EIP-1559 block
  • Correct gas target calculation using elasticity multiplier
  • Appropriate base fee adjustments based on gas usage vs target
  • Proper bounds checking to prevent negative base fees

Copy link

@Thegaram Thegaram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current implementation is lgtm, pending discussion on Slack:

  1. Consider max(eip1559BaseFee, overhead) so that we don't need extractBaseFeeEIP1559. (Not super important.)
  2. Consider if we want to verify the base fee update, and if yes, we need to read the current l2BaseFeeOverhead from state.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
consensus/misc/eip1559.go (1)

110-116: Minor: allocate once & clarify fork check

IsFeynman(big.NewInt(0).Add(parent.Number, common.Big1)) allocates a new
big.Int every block. It’s cheap but unnecessary and slightly obscures
intent. Consider:

-nextNumber := new(big.Int).Add(parent.Number, common.Big1)
-if !config.IsFeynman(nextNumber) {
+nextNumber := new(big.Int).Add(parent.Number, common.Big1)
+if !config.IsFeynman(nextNumber) {
     return calcBaseFee(scalar, overhead, parentL1BaseFee)
 }

Makes the intent (“next block”) explicit and avoids repeated temp allocation.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 036f4c0 and 43a698e.

📒 Files selected for processing (1)
  • consensus/misc/eip1559.go (1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
consensus/misc/eip1559.go (3)
params/config.go (1)
  • ChainConfig (634-677)
core/types/block.go (1)
  • Header (69-122)
params/protocol_params.go (1)
  • InitialBaseFee (126-126)
🪛 GitHub Check: build-mock-ccc-geth
consensus/misc/eip1559.go

[failure] 170-170:
undefined: baseFeeEIP


[failure] 168-168:
undefined: baseFeeEIP


[failure] 167-167:
undefined: baseFeeEIP


[failure] 166-166:
undefined: baseFeeEIP


[failure] 165-165:
no new variables on left side of :=

🪛 GitHub Check: test
consensus/misc/eip1559.go

[failure] 170-170:
undefined: baseFeeEIP


[failure] 168-168:
undefined: baseFeeEIP


[failure] 167-167:
undefined: baseFeeEIP


[failure] 166-166:
undefined: baseFeeEIP


[failure] 165-165:
no new variables on left side of :=

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: check
  • GitHub Check: Analyze (go)

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (3)
consensus/misc/eip1559.go (3)

110-113: Minor: avoid the heap allocation inside the fork check.

big.NewInt(0).Add(parent.Number, common.Big1) allocates every time.
Using new(big.Int).Add(...) or a small scratch variable outside the hot path eliminates repeated allocations in block production loops.


145-156: Use distinct variables for clarity & to avoid accidental aliasing.

num is reused as both the delta and the receiver of Add, which makes the code harder to audit.
Separating delta and newBaseFee (as done in upstream geth) reads clearer and removes any doubt about aliasing side-effects.


172-175: Unnecessary copy and missed receiver – simplify & avoid confusion.

The first Set is discarded immediately because aux.Sub overwrites it using baseFee as the operand.
The same result can be achieved with one allocation and without touching the input value:

-func extractBaseFeeEIP1559(config *params.ChainConfig, baseFee *big.Int) *big.Int {
-	aux := new(big.Int).Set(baseFee)
-	return aux.Sub(baseFee, config.ProvingBaseFee)
+func extractBaseFeeEIP1559(config *params.ChainConfig, baseFee *big.Int) *big.Int {
+	return new(big.Int).Sub(baseFee, config.ProvingBaseFee)
 }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 43a698e and 9b715c8.

📒 Files selected for processing (3)
  • consensus/misc/eip1559.go (1 hunks)
  • params/config.go (3 hunks)
  • params/protocol_params.go (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • params/protocol_params.go
  • params/config.go
🧰 Additional context used
🧬 Code Graph Analysis (1)
consensus/misc/eip1559.go (3)
params/config.go (1)
  • ChainConfig (634-678)
core/types/block.go (1)
  • Header (69-122)
params/protocol_params.go (1)
  • InitialBaseFee (126-126)
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: test
  • GitHub Check: check
  • GitHub Check: Analyze (go)
🔇 Additional comments (1)
consensus/misc/eip1559.go (1)

127-132: Edge-case: first Feynman block after a gas-limit change.

parentGasTarget := parent.GasLimit / config.ElasticityMultiplier() assumes the parent block obeys the post-fork elastic limit rules.
If the fork coincides with a gas-limit change, this division could underflow and distort the first base-fee adjustment. Verify whether such a scenario is possible on Scroll’s network or guard against it here.

@ranchalp ranchalp force-pushed the l2-fee-feynman branch 2 times, most recently from ccbc9d4 to e58ebfa Compare June 11, 2025 08:34
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Inline review comments failed to post. This is likely due to GitHub's limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 2

♻️ Duplicate comments (1)
consensus/misc/eip1559.go (1)

119-125: ⚠️ Potential issue

Nil-pointer panic + missing max-fee clamp in calcBaseFeeFeynman

config.ProvingBaseFee is a *big.Int.
If it is omitted in the JSON chain-config this line will dereference nil and crash the node.
Furthermore, the result is no longer clamped to MaximumL2BaseFee, breaking the invariant enforced in the legacy path.

 func calcBaseFeeFeynman(config *params.ChainConfig, parent *types.Header) *big.Int {
 	baseFeeEIP1559 := calcBaseFeeEIP1559(config, parent)
 	baseFee := new(big.Int).Set(baseFeeEIP1559)
-	baseFee.Add(baseFee, config.ProvingBaseFee)
+	// Defensive: treat a missing proving fee as zero.
+	if config.ProvingBaseFee != nil {
+		baseFee.Add(baseFee, config.ProvingBaseFee)
+	}
+
+	// Preserve protocol maximum.
+	if baseFee.Cmp(big.NewInt(MaximumL2BaseFee)) > 0 {
+		baseFee.SetUint64(MaximumL2BaseFee)
+	}
 
 	return baseFee
 }
🧹 Nitpick comments (1)
consensus/misc/eip1559.go (1)

106-110: Avoid magic numbers – reuse params.InitialBaseFee instead of hard-coding 10 000 000

The value returned here (0.01 Gwei) is already captured by params.InitialBaseFee. Duplicating the literal makes future changes error–prone and obscures intent.

-	return big.NewInt(10000000) // 0.01 Gwei
+	return new(big.Int).SetUint64(params.InitialBaseFee)
🛑 Comments failed to post (2)
consensus/misc/eip1559.go (2)

129-173: 🛠️ Refactor suggestion

Edge-case correctness gaps in EIP-1559 adjustment

  1. extractBaseFeeEIP1559 can return a negative value if the parent base fee is smaller than ProvingBaseFee; subsequent multiplications propagate the sign.
    Clamp to 0 immediately after extraction.

  2. The two return paths (gasUsed > target and < target) no longer clamp the final fee to MaximumL2BaseFee, unlike the legacy formula. A single mis-configured block could therefore violate consensus rules enforced elsewhere.

Consider:

-	parentBaseFeeEIP1559 := extractBaseFeeEIP1559(config, parent.BaseFee)
+	parentBaseFeeEIP1559 := extractBaseFeeEIP1559(config, parent.BaseFee)
+	if parentBaseFeeEIP1559.Sign() < 0 {
+		parentBaseFeeEIP1559 = common.Big0
+	}

 ... // after computing newBaseFee

-	return newBaseFee
+	if newBaseFee.Cmp(big.NewInt(MaximumL2BaseFee)) > 0 {
+		newBaseFee.SetUint64(MaximumL2BaseFee)
+	}
+	return newBaseFee

This keeps the forked path behaviourally aligned with the pre-Feynman code.

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In consensus/misc/eip1559.go between lines 129 and 173, fix two issues: first,
clamp the base fee returned by extractBaseFeeEIP1559 to zero immediately to
prevent negative values from propagating; second, after computing the new base
fee in both the gasUsed > target and gasUsed < target branches, clamp the final
base fee to the MaximumL2BaseFee to ensure it does not exceed consensus limits,
maintaining alignment with legacy behavior.

174-177: ⚠️ Potential issue

Bug in extractBaseFeeEIP1559 – wrong operand & nil-check missing

Sub is performed with baseFee instead of the copied aux, and again assumes config.ProvingBaseFee is non-nil.

-func extractBaseFeeEIP1559(config *params.ChainConfig, baseFee *big.Int) *big.Int {
-	aux := new(big.Int).Set(baseFee)
-	return aux.Sub(baseFee, config.ProvingBaseFee)
+func extractBaseFeeEIP1559(config *params.ChainConfig, baseFee *big.Int) *big.Int {
+	bf := new(big.Int).Set(baseFee) // work on a copy
+	if config.ProvingBaseFee != nil {
+		bf.Sub(bf, config.ProvingBaseFee)
+	}
+	if bf.Sign() < 0 {
+		return common.Big0
+	}
+	return bf
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

func extractBaseFeeEIP1559(config *params.ChainConfig, baseFee *big.Int) *big.Int {
	bf := new(big.Int).Set(baseFee) // work on a copy
	if config.ProvingBaseFee != nil {
		bf.Sub(bf, config.ProvingBaseFee)
	}
	if bf.Sign() < 0 {
		return common.Big0
	}
	return bf
}
🤖 Prompt for AI Agents
In consensus/misc/eip1559.go around lines 174 to 177, the function
extractBaseFeeEIP1559 incorrectly uses baseFee as the minuend in the Sub
operation instead of the copied aux, and it does not check if
config.ProvingBaseFee is nil before using it. Fix this by performing the Sub
operation on aux (aux.Sub(aux, config.ProvingBaseFee)) and add a nil check for
config.ProvingBaseFee to avoid potential nil pointer dereference.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (1)
consensus/misc/eip1559.go (1)

120-125: Nil-pointer risk when adding config.ProvingBaseFee

config.ProvingBaseFee is a pointer that may be nil (e.g. omitted in the JSON).
(*big.Int).Add will panic on a nil receiver. Guard and keep the protocol max:

-	baseFee := new(big.Int).Set(baseFeeEIP1559)
-	baseFee.Add(baseFee, config.ProvingBaseFee)
+	baseFee := new(big.Int).Set(baseFeeEIP1559)
+if config.ProvingBaseFee != nil {
+	baseFee.Add(baseFee, config.ProvingBaseFee)
+}
+if baseFee.Cmp(big.NewInt(MaximumL2BaseFee)) > 0 {
+	baseFee.SetUint64(MaximumL2BaseFee)
+}
🧹 Nitpick comments (1)
consensus/misc/eip1559.go (1)

173-175: Unnecessary copy & argu­ment mix-up

aux is initialised as a copy of baseFee, yet the subtraction uses the original
pointer as the first operand, mutating the caller-supplied value:

aux := new(big.Int).Set(baseFee)
return aux.Sub(baseFee, config.ProvingBaseFee)

Safer & clearer:

-aux := new(big.Int).Set(baseFee)
-return aux.Sub(baseFee, config.ProvingBaseFee)
+aux := new(big.Int).Set(baseFee)
+return aux.Sub(aux, config.ProvingBaseFee)
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 08b2360073a6abfe41e982fd47c58afc1451e1e7 and 6c5e44d.

📒 Files selected for processing (4)
  • consensus/misc/eip1559.go (1 hunks)
  • core/state_processor_test.go (1 hunks)
  • params/config.go (2 hunks)
  • params/protocol_params.go (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • core/state_processor_test.go
🚧 Files skipped from review as they are similar to previous changes (2)
  • params/config.go
  • params/protocol_params.go
🧰 Additional context used
🪛 GitHub Check: test
consensus/misc/eip1559.go

[failure] 130-130:
cannot use parent.Number (variable of type *big.Int) as uint64 value in argument to config.IsFeynman


[failure] 111-111:
cannot use big.NewInt(0).Add(parent.Number, common.Big1) (value of type *big.Int) as uint64 value in argument to config.IsFeynman

🪛 GitHub Check: build-mock-ccc-geth
consensus/misc/eip1559.go

[failure] 130-130:
cannot use parent.Number (variable of type *big.Int) as uint64 value in argument to config.IsFeynman


[failure] 111-111:
cannot use big.NewInt(0).Add(parent.Number, common.Big1) (value of type *big.Int) as uint64 value in argument to config.IsFeynman

⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: semgrep/ci
  • GitHub Check: check
  • GitHub Check: Analyze (go)

@colinlyguo colinlyguo changed the title L2 fee feynman feat(feynman): L2 fee calculation Jun 25, 2025
georgehao
georgehao previously approved these changes Jun 26, 2025
Copy link

@colinlyguo colinlyguo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

colinlyguo
colinlyguo previously approved these changes Jun 26, 2025
georgehao
georgehao previously approved these changes Jun 26, 2025
@colinlyguo colinlyguo dismissed stale reviews from georgehao and themself via 4370957 June 26, 2025 11:39
Thegaram
Thegaram previously approved these changes Jun 26, 2025
colinlyguo
colinlyguo previously approved these changes Jun 26, 2025
@Thegaram Thegaram dismissed stale reviews from colinlyguo and themself via 67f8949 June 26, 2025 11:53
@Thegaram Thegaram merged commit c604c90 into develop Jun 26, 2025
19 of 20 checks passed
@Thegaram Thegaram deleted the l2-fee-feynman branch June 26, 2025 12:07
@coderabbitai coderabbitai bot mentioned this pull request Jul 17, 2025
3 tasks
@coderabbitai coderabbitai bot mentioned this pull request Nov 13, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants