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

Remove difficulty check for work_generate #94

Merged
merged 2 commits into from
May 26, 2021
Merged

Conversation

Joohansson
Copy link
Owner

Network difficulty is deprecated since node v22. The proxy will now default to SEND difficulty fffffff800000000 if the difficulty is not specified for the work_generate command.

The previous version will work fine too because the v22 node will still return default values as network_current.

The user typically defines the difficulty when requesting pow, for example, the RECEIVE-difficulty which is 64x lower.

Also disables the watch_work since that is deprecated in v22. Though it will not do any harm to send along the parameter. Will be removed completely at a later stage.

@Joohansson Joohansson added the enhancement New feature or request label May 16, 2021
@Joohansson Joohansson merged commit dc22fd7 into master May 26, 2021
@Joohansson Joohansson deleted the difficulty_check branch May 26, 2021 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant