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

Next Parity version sets number to null for pending blocks #343

Closed
dvdplm opened this issue May 25, 2018 · 14 comments
Closed

Next Parity version sets number to null for pending blocks #343

dvdplm opened this issue May 25, 2018 · 14 comments

Comments

@dvdplm
Copy link

dvdplm commented May 25, 2018

The ethereum RPC spec explicitly states that pending blocks should contain null for some members of the response object, notably the number member.

Until recently Parity did not respond according to the spec and after the change to adhere to spec (scheduled to be released in v1.11, currently in beta) this project breaks, as the code to store new jobs expects the number member to be a uint. See this issue on Parity for details.

What is the reason open-ethereum-pool need the number of a pending block? Superficially it seems like the code here does not necessarily need this value to function, but perhaps there's a good reason for it?

@dvdplm
Copy link
Author

dvdplm commented May 30, 2018

@sammy007 ping

@mvilera
Copy link

mvilera commented Jun 2, 2018

@dvdplm i think @sammy007 stopped supporting/reading this issue tracker long time ago, probably this issue will have to be fixed by the user base

@hillbillie
Copy link

Nice smile

@dvdplm
Copy link
Author

dvdplm commented Jun 4, 2018

@mvilera I see, thank you for the heads-up.

@mvilera
Copy link

mvilera commented Jun 4, 2018

@dvdplm you're welcome, about the topic, have you done any changes at the code base to fix this issue? or do you recommend any approach?

@dvdplm
Copy link
Author

dvdplm commented Jun 5, 2018

have you done any changes at the code base to fix this issue? or do you recommend any approach?

I have not made any changes. I think the first thing I'd try is to see what happens if instead of exiting early in case of a parse error, we'd just let it continue anyway: perhaps knowing the number is not necessary? The spec says it should be null for pending blocks, so there shouldn't be a fundamental reason why it is needed. That's what I'd try!

@sammy007
Copy link
Owner

sammy007 commented Jun 7, 2018

I am working on it.

@sammy007
Copy link
Owner

sammy007 commented Jun 7, 2018

The develop branch now works with v1.11. And no longer works with Geth.

@dvdplm
Copy link
Author

dvdplm commented Jun 7, 2018

@sammy007 that's good news, and bad news. Do you mind opening an issue on geth for this?

@sammy007
Copy link
Owner

sammy007 commented Jun 7, 2018

About what? I can't support two nodes with different rpc calls, geth is barely usable, parity is still usable, this pool no longer support geth.

@sammy007 sammy007 closed this as completed Jun 7, 2018
@dvdplm
Copy link
Author

dvdplm commented Jun 7, 2018

this pool no longer support geth

Alright, your project, your decision. (It might be appreciated by the geth people to at least know about this, that way they can make an informed decision to change or not as they please).

cc @karalabe

@sammy007
Copy link
Owner

sammy007 commented Jun 7, 2018

Geth people should just use master branch or revert changes. The change is in develop branch, for your information (because parity breaking changes are still not "stable").

Everyone who is running this pool must understand how it works and must know how to code simple stuff, apply patches, revert changes. This pool is widely used for shitcoin forks and all whining comes from those who are running pools for shitcoin forks so far. I care not about forks and forks are actually a main reason why this pool is no longer actively supported. I personally prefer parity over geth just because it is faster and many admins told me that it's pointless to continue using geth. My time is limited and I can't waste it to support two incompatible rpc interfaces just to make pool admins who are running it mostly for shitcoins happy.

@dvdplm
Copy link
Author

dvdplm commented Jun 8, 2018

The change is in develop branch, for your information (because parity breaking changes are still not "stable").

That makes total sense. 👍🏿
Thank you for your work on this! :)

@ghost
Copy link

ghost commented Sep 5, 2018

That is because they butchered the API. The response, "No longer supported"

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

No branches or pull requests

4 participants