Skip to content

Conversation

@lorenzogentile404
Copy link
Contributor

@lorenzogentile404 lorenzogentile404 commented Dec 1, 2025

Note

Downsizes gas-related columns from i128 to i64 across cancun, osaka, prague, london, and shanghai schemas.

  • Schema changes (txndata):
    • Common columns:
      • txndata/{cancun,osaka,prague}/columns/common.lisp: GAS_CUMULATIVE type reduced from i128 to i64.
    • HUB view:
      • txndata/{cancun,osaka,prague}/columns/hub_view.lisp: GAS_LEFTOVER, REFUND_COUNTER_FINAL, REFUND_EFFECTIVE types reduced from i128 to i64.
    • Fork-specific columns:
      • txndata/{london,shanghai}/columns.lisp: GAS_LEFTOVER, REFUND_COUNTER, REFUND_EFFECTIVE, GAS_CUMULATIVE types reduced from i128 to i64.

Written by Cursor Bugbot for commit 2108ce8. This will update automatically on new commits. Configure here.

@lorenzogentile404 lorenzogentile404 linked an issue Dec 1, 2025 that may be closed by this pull request
Copy link
Collaborator

@OlivierBBB OlivierBBB left a comment

Choose a reason for hiding this comment

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

LGTM. Are there similar changes to apply to the zkASM-ified GAS module ?

Copy link
Collaborator

@letypequividelespoubelles letypequividelespoubelles left a comment

Choose a reason for hiding this comment

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

why putting i64 where you could have less ? block gas is cap at 2000000000 for linea and tx GAs since Osaka, so ...

( REFUND_EFFECTIVE :i128 )
( GAS_LEFTOVER :i64 )
( REFUND_COUNTER_FINAL :i64 )
( REFUND_EFFECTIVE :i64 )
Copy link
Collaborator

Choose a reason for hiding this comment

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

refund is cap by tx ax gas, so i25

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.

Type correction in TXN_DATA

4 participants