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

add ExtraDataLengthError #1666

Merged
merged 4 commits into from Jun 3, 2020

Conversation

iamdefinitelyahuman
Copy link
Contributor

What was wrong?

When a POA network returns >32 bytes of extraData a ValidationError is raised. Because this exception is also used for other errors, it is difficult to specifically target and handle the issue.

Originally discussed on Gitter.

How was it fixed?

To more effectively handle this specific situation, I had added a new exception ExtraDataLengthError which is only raised in this case. The new exception is a subclass of ValidationError so this shouldn't break any existing code.

Cute Animal Picture

image

Copy link
Contributor

@cburgdorf cburgdorf left a comment

Choose a reason for hiding this comment

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

This looks good (I also read the gitter convo) 👍

Copy link
Member

@wolovim wolovim left a comment

Choose a reason for hiding this comment

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

🚢

@wolovim
Copy link
Member

wolovim commented Jun 3, 2020

Thanks for the PR @iamdefinitelyahuman. Just needs a newsfragment, which I'll add then merge in.

@wolovim wolovim merged commit 7e26088 into ethereum:master Jun 3, 2020
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

3 participants