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

Working Block Polling for difficulty change in current block #171

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Working Block Polling for difficulty change in current block #171

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 11, 2019

Some coins changes difficulty over time in current block, and this makes block polling for CURRENT block difficulty in node-stratum-pool work for this change.

JobRebraodcastTimeout makes stratum server check for new difficulty, and if difficulty has changed, it will print it to nomp's log as " Block notification or difficulty change through RPC polling " and effectively send new work to miners, not just new job. If it hasn't changed, it still does update the current job id, but will not send a new work request to miners.

So this change to node-stratum-pool to include possible CURRENT block difficulty changes over time and send it as new work to pool miners does work. And it doesn't changes anything else in the code.

When a new block is found OR the current block difficulty changes, after a jobrebroadcasttimeout is called, it will now print
" Block notification or Block difficulty change via RPC polling "
instead of just
" Block notification via RPC polling " .

I have tested this and confirms that it works.

https:/Lightningcash-dev/node-stratum-pool

e0fc581

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.

1 participant