Skip to content

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.

3 participants