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

Don't apply geth poa field remapping if result is None #2064

Merged
merged 1 commit into from
Jul 8, 2021

Conversation

kclowes
Copy link
Collaborator

@kclowes kclowes commented Jul 8, 2021

What was wrong?

Geth POA middleware was erroring out if the response that came back was None.

Fixes #2063

How was it fixed?

Added a test that replicated the issue, and then added a null check to make sure that formatters weren't getting applied unless a dictionary is present.

Todo:

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@kclowes kclowes force-pushed the fix-geth-poa-middleware branch from 159d7d6 to 6757ef1 Compare July 8, 2021 17:43
@kclowes kclowes requested a review from fselmo July 8, 2021 18:01
Copy link
Collaborator

@fselmo fselmo left a comment

Choose a reason for hiding this comment

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

Ship it 🚢

@kclowes kclowes merged commit 5efab0f into ethereum:master Jul 8, 2021
@kclowes kclowes deleted the fix-geth-poa-middleware branch July 8, 2021 19:04
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.

Bug with geth_poa_middleware in the case of non-existing blocks
2 participants