Skip to content

Conversation

@jwasinger
Copy link
Owner

No description provided.

@jwasinger jwasinger force-pushed the call-gas-revamp branch 2 times, most recently from f2c9da6 to c524785 Compare December 8, 2025 19:11
…ate access if the component of the call price which is independent from the state is not sufficient to cover the provided gas.
@jwasinger jwasinger changed the title Call gas revamp core/vm: refactor call gas calculation to avoid state lookups when not necessary Dec 8, 2025
// - 63/64ths rule
old, err := oldCalculator(evm, contract, stack, mem, memorySize)
if err != nil {
return old, err
Copy link
Owner Author

Choose a reason for hiding this comment

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

returning old here in the case of an error doesn't have any special meaning. If the dynamic gas calculator returns an error, the returned gas is ignored in the interpreter loop here

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