Skip to content

Conversation

@Thegaram
Copy link
Contributor

@Thegaram Thegaram commented Oct 31, 2025

Copy link
Collaborator

@greged93 greged93 left a comment

Choose a reason for hiding this comment

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

looks good, just a comment related to keeping the ratio as an input.

@Thegaram Thegaram marked this pull request as ready for review November 4, 2025 19:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for the GALILEO hard fork by introducing a new fee calculation mechanism based on compressed transaction size. The key change is moving from a compression ratio-based penalty system (FEYNMAN) to a direct compressed size-based formula.

  • Added compressed_size field to ScrollTransaction and ScrollTxTr trait
  • Implemented calculate_tx_l1_cost_galileo function with new fee formula
  • Updated calculate_tx_l1_cost to handle GALILEO spec ID
  • Added unit tests for the new GALILEO fee calculation

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/transaction.rs Added compressed_size field and getter to support GALILEO fee calculations
src/l1block.rs Implemented GALILEO fee calculation logic and added unit tests
src/handler.rs Updated fee calculation calls to pass the new compressed_size parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

jonastheis
jonastheis previously approved these changes Nov 5, 2025
mmjahanara
mmjahanara previously approved these changes Nov 5, 2025
greged93
greged93 previously approved these changes Nov 5, 2025
Copy link
Collaborator

@greged93 greged93 left a comment

Choose a reason for hiding this comment

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

lgtm!

@Thegaram Thegaram dismissed stale reviews from greged93, mmjahanara, and jonastheis via 261ada5 November 5, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants