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

Refactor away guard from MetadataOperation::Update #1318

Merged
merged 2 commits into from
Oct 29, 2019

Conversation

leoyvens
Copy link
Collaborator

Following up to #1308 with some more simplification.

The guard was only used in update_ethereum_block_pointer_operations, which in turn is only used in reverts or transact block.

For transact block, the guard was made totally redundant as we now fetch the block in the same transaction. For reverts, I was more conservative and just added an assert to replace the guard.

It was only used in `update_ethereum_block_pointer_operations`,
which in turn is only used in reverts or transact block.

For transact block, the guard was made totally redundant
as we now fetch the block in the same transaction.

For reverts, I was more conservative and simply added
an assert to replace the guard.
@leoyvens leoyvens requested a review from lutter October 29, 2019 13:49
Copy link
Collaborator

@lutter lutter left a comment

Choose a reason for hiding this comment

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

LGTM

@leoyvens
Copy link
Collaborator Author

@lutter thanks for the review!

@leoyvens leoyvens merged commit 777f784 into master Oct 29, 2019
@leoyvens leoyvens deleted the leo/refactor-away-update-guard branch October 29, 2019 19:58
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