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

Shares are submitted before being committed locally #119

Open
zone117x opened this issue Feb 27, 2014 · 8 comments
Open

Shares are submitted before being committed locally #119

zone117x opened this issue Feb 27, 2014 · 8 comments

Comments

@zone117x
Copy link

It appears that sgminer will submit shares before saving the share locally, and if the stratum server replies fast enough, then sgminer outputs the error:

[09:38:43] Accepted untracked stratum share from (null)

A user of my node-stratum pool sever discovered the issue, see debug and details here: zone117x/node-stratum-pool#9

@veox
Copy link
Contributor

veox commented Feb 27, 2014

TODO: see git blame/history on this log line as to why it was introduced.

EDIT: 8baac0d

@veox veox added this to the 4.2.0 milestone Feb 27, 2014
@veox
Copy link
Contributor

veox commented Feb 27, 2014

To clarify, this is not an error. The message is of log level LOG_NOTICE, and is expected behaviour.

@veox
Copy link
Contributor

veox commented Feb 27, 2014

There seems to be no memory leak related to the HASH_FIND macro (called by HASH_FIND_INT) used in parse_stratum_response() (that prints this notice), and introducing an artificial delay as proposed in zone117x/node-stratum-pool#9 is an unnecessary regression.

Closing as wontfix.

@veox veox closed this as completed Feb 27, 2014
@veox veox added the wontfix label Feb 27, 2014
@zone117x
Copy link
Author

Are you saying this is fixed in sgminer? Or that Accepted untracked stratum share from (null) are expected messages that users can expect?

@veox
Copy link
Contributor

veox commented Feb 27, 2014

The latter. It is OK if the pool software is faster than the miner (which handles mining in high-priority threads, and leaves accounting to the low-priority ones).

This is in fact the case with p2pool setups: between 1 and 10 per cent shares are untracked.

@zone117x
Copy link
Author

Alrighty. You know you wouldn't have to delay submitting the shares - when the share submission response comes back from the server you could wait until the share has been tracked/flushed locally before outputting to console.

@veox
Copy link
Contributor

veox commented Feb 28, 2014

Hmm, that is true. I'm not well-versed in Stratum yet, though.

Reopening as enhancement.

@icook
Copy link

icook commented May 28, 2014

I too would like this. The custom stratum server developed for SimpleVert (https://github.com/simplecrypto/powerpool) has this issue and users ask about it often. Adding delays definitely fixes the problem, but seems like a hack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants