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

Tracing - respect tx boundary for EIP-2200 cost calculations #339

Merged
merged 1 commit into from
Jan 29, 2020

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Jan 29, 2020

When we calculate the cost of a SSTORE in trace we need to consider the
original value as of when the last transaction finished, not when the
whole block started.

To create a test for this the test blockchain also needed to be upgraded
to Istanbul. This resulted in a large number of cost only changes.

Signed-off-by: Danno Ferrin danno.ferrin@gmail.com

When we calculate the cost of a SSTORE in trace we need to consider the
original value as of when the last transaction finished, not when the
whole block started.

To create a test for this the test blockchain also needed to be upgraded
to Istanbul.  This resulted in a large number of cost only changes.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Copy link
Contributor

@AbdelStark AbdelStark 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 to me.

@AbdelStark AbdelStark merged commit 0b9b68f into hyperledger:master Jan 29, 2020
@shemnon shemnon deleted the tracetxboundary branch February 26, 2022 18:41
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