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

Remove unnecessary receipt derivation logic #29670

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

pengin7384
Copy link
Contributor

Remove unnecessary receipt derivation logic.
More details are in the issue.

Related issue: #29669


// Find a match tx and derive receipt fields
for txIndex, tx := range blockBody.Transactions {
if tx.Hash() == txHash {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if tx.Hash() == txHash {
if tx.Hash() != txHash {
continue
}

if you invert this, you can un-indent the whole clause below for great good

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks good.
Below lines need to be un-indent, so I'll push a new commit.

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.

None yet

2 participants