Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update linea_estimateGas reference with compatibility mode details #747

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jlwllmr
Copy link
Collaborator

@jlwllmr jlwllmr commented Sep 20, 2024

Compatibility mode for linea_estimateGas must be disabled on relevant nodes from September 30 when linea_estimateGas is activated on Mainnet to ensure that the endpoint behaves as intended; otherwise, compatibility mode means it will return the same as eth_gasPrice. Added details of this and explained how to disable/check it is already disabled.

Copy link

vercel bot commented Sep 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
doc-zk-evm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 10:19am

`linea_estimateGas` is currently unavailable, but we will provide activation dates soon. In the
meantime, please get in touch via the [Linea Discord](https://discord.gg/linea) if you intend to
use `linea_estimateGas` once it is available.
`linea_estimateGas` is currently only available on Mainnet in compatibility mode, which means it
Copy link
Contributor

Choose a reason for hiding this comment

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

This sounds like it's unavailable on Sepolia, but it is


The formula with `linea_estimateGas` enabled is:
```
fee = (calldataUsed * multiplier + constant) * gasUsed
Copy link
Contributor

Choose a reason for hiding this comment

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

That's inaccurate

  • multiplier - Linea's cost per byte on L1 in current market conditions
  • There's another multiplier (overheadMultiplier aka margin) * (calldataUsedInBytes * multiplier + constant) * gasUsed. This margin is to ensure that in case of a sudden change of market conditions (gas price increase) transaction is still accepted

I know that public knowledge shouldn't be exactly the same as internal, but please take it into consideration


For most people running an `advanced` Linea Besu node—a prerequisite for using `linea_estimateGas`—
compatibility mode will already be disabled in the files you downloaded from the [`linea-besu-package`
repository](https://github.com/Consensys/linea-besu-package/tree/main).
Copy link
Contributor

Choose a reason for hiding this comment

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

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.

2 participants