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

multi: stratum improvements. #304

Merged
merged 8 commits into from
Feb 15, 2021
Merged

Conversation

dnldd
Copy link
Member

@dnldd dnldd commented Jan 28, 2021

This extends client read/write timeouts, mining.subscribe response handling and other stratum related improvements.

dnldd added 4 commits February 4, 2021 13:35
This adds the needed helpers for parsing and responding
to extranonce.subscribe messages.
This update ParseSubscribeResponse to handle
responses where a subscription id is not included. This
also refactors AuthorizeRequest to handle cases where
only an address is expected instead of a
username.address combination.
This adds helpers for stratum error marshaling and
unmarshalling. Tests have been added accordingly.
This updates rolled work notifications to indicate
they are not clean/new jobs. This alo improves the
error message returned, if any, on a work submission rejection. Client timeouts have also
been extended to about four block times.
@dnldd dnldd force-pushed the stratum_improvements branch 2 times, most recently from 4954ccd to 0e688c0 Compare February 4, 2021 14:45
@dnldd dnldd requested a review from jholdstock February 8, 2021 11:39
cmd/miner/config.go Outdated Show resolved Hide resolved
pool/client.go Outdated Show resolved Hide resolved
pool/client.go Outdated Show resolved Hide resolved
@jholdstock
Copy link
Member

Deployed to https://pool.jholdstock.uk/

Successfully mining blocks, but still seeing a lot of errors on the pool log:

2021-02-10 10:12:34.351 [ERR] POOL: submitted work from d99f78a0/cpu is not less than the network target difficulty
2021-02-10 10:25:12.450 [ERR] POOL: submitted work from d99f78a0/cpu is not less than the network target difficulty
2021-02-10 10:26:33.480 [ERR] POOL: submitted work from d99f78a0/cpu is not less than the network target difficulty
2021-02-10 10:31:27.851 [ERR] POOL: submitted work from d99f78a0/cpu is not less than the network target difficulty
2021-02-10 10:31:34.448 [ERR] POOL: submitted work from d99f78a0/cpu is not less than the network target difficulty
2021-02-10 10:31:41.004 [ERR] POOL: submitted work from d99f78a0/cpu is not less than the network target difficulty
2021-02-10 10:31:47.273 [ERR] POOL: submitted work from d99f78a0/cpu is not less than the network target difficulty
2021-02-10 10:32:11.731 [INF] POOL: Mined work 0000000ce28b245f67ae1103ec8619fce82b41a623d697e4e2689924557e29cb confirmed by connected block #618036

This adds the useragent config option to the cpu miner to allow it mimic other miners. A bug related
to sanitizing the pool address when it has the
stratum prefix has also been fixed.
This adds more specific difficulty error types.
@dnldd dnldd force-pushed the stratum_improvements branch from 0e688c0 to 1a67908 Compare February 12, 2021 13:20
This integrates a dynamic client timeout based on
the network being mined on by the pool. This also
resolves hightlighted review issues an updates
some log outputs.
@dnldd dnldd force-pushed the stratum_improvements branch from 1a67908 to 4e1b6b0 Compare February 12, 2021 14:42
cmd/miner/client.go Outdated Show resolved Hide resolved
cmd/miner/config.go Outdated Show resolved Hide resolved
pool/client.go Outdated Show resolved Hide resolved
pool/endpoint.go Outdated Show resolved Hide resolved
@dnldd dnldd merged commit 7e5be5c into decred:master Feb 15, 2021
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.

2 participants