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

Fix WebSocket Provider Block Subscription #849

Closed
wants to merge 1 commit into from
Closed

Fix WebSocket Provider Block Subscription #849

wants to merge 1 commit into from

Conversation

cavanmflynn
Copy link

This PR removes the second argument, an empty object, from the block header subscription call in the WebSocket provider.

Both Geth and Parity throw due to the presence of a second argument. There was a time when Geth expected an empty object to be passed, but this has since been removed to keep compatibility with Parity.

Geth Error: Error: too many arguments, want at most 1

Parity Error: Couldn't parse parameters: newHeads

@ricmoo
Copy link
Member

ricmoo commented May 26, 2020

Awesome! Thanks. I'll merge and test tomorrow. :)

@ricmoo ricmoo added enhancement New feature or improvement. on-deck This Enhancement or Bug is currently being worked on. bug Verified to be an issue. fixed/complete This Bug is fixed or Enhancement is complete and published. and removed enhancement New feature or improvement. on-deck This Enhancement or Bug is currently being worked on. labels May 26, 2020
@ricmoo
Copy link
Member

ricmoo commented May 30, 2020

A typo in the commit message missed linking this.

Please see 180a1af.

This should be fixed now in 5.0.0-beta.189, please try it out and let me know if you still have any problems.

@cavanmflynn
Copy link
Author

Thanks for the quick response! LGTM 👍

@cavanmflynn cavanmflynn closed this Jun 1, 2020
@cavanmflynn cavanmflynn deleted the cf-fix-new-heads-subscription branch June 1, 2020 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified to be an issue. fixed/complete This Bug is fixed or Enhancement is complete and published.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants