Skip to content

Conversation

@holiman
Copy link
Contributor

@holiman holiman commented Jul 30, 2021

This is a rebased version of #23002. Some commits are dropped, and I didn't want to squash-delete those until I'm sure they're not needed, hence the new PR.

@holiman holiman added this to the 1.10.7 milestone Jul 30, 2021
Copy link
Member

@rjl493456442 rjl493456442 left a comment

Choose a reason for hiding this comment

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

LGTM!

@holiman holiman merged commit 0658712 into ethereum:master Aug 7, 2021
}
}
// Make sure the sender is an EOA
if codeHash := st.state.GetCodeHash(st.msg.From()); codeHash != emptyCodeHash && codeHash != (common.Hash{}) {
Copy link
Member

Choose a reason for hiding this comment

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

Why did you check against the zero hash? That should never happen.

@holiman
Copy link
Contributor Author

holiman commented Aug 12, 2021 via email

sidhujag pushed a commit to sidhujag/go-ethereum that referenced this pull request Aug 15, 2021
This adds a check to verify that a sender-account does not have code, which means that the codehash is either `emptyCodeHash` _OR_ not present. The latter occurs IFF the sender did not previously exist, a situation which can only occur with zero cost gasprices.
atif-konasl pushed a commit to frozeman/pandora-execution-engine that referenced this pull request Oct 15, 2021
This adds a check to verify that a sender-account does not have code, which means that the codehash is either `emptyCodeHash` _OR_ not present. The latter occurs IFF the sender did not previously exist, a situation which can only occur with zero cost gasprices.
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Nov 1, 2024
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Jul 26, 2025
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Jul 30, 2025
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Aug 13, 2025
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Aug 22, 2025
gzliudan added a commit to XinFinOrg/XDPoSChain that referenced this pull request Aug 26, 2025
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.

4 participants