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

core: remove unused bc ChainContext in applyTransaction #25506

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

ycyraum
Copy link
Contributor

@ycyraum ycyraum commented Aug 10, 2022

bc ChainContext is not used by applyTransaction at all, so there is no need to pass it.

The context is restarted by applyTransaction to the txContext:

https://github.com/ethereum/go-ethereum/blob/master/core/state_processor.go#L98

@ycyraum ycyraum changed the title state: applyTransaction: redundant bc ChainContext core: remove unused bc ChainContext in applyTransaction Aug 10, 2022
@ycyraum ycyraum force-pushed the apply-transaction-no-bc branch from fd6606a to 877ef7f Compare August 10, 2022 06:02
Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

SGTM

@karalabe karalabe added this to the 1.10.22 milestone Aug 10, 2022
@karalabe karalabe merged commit c4cd632 into ethereum:master Aug 10, 2022
@ycyraum ycyraum deleted the apply-transaction-no-bc branch August 10, 2022 11:30
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Aug 10, 2022
core: remove unused bc ChainContext in applyTransaction
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