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

Flooding with shares below the pool target (maxcoin branch) #326

Closed
prydie opened this issue Mar 28, 2014 · 4 comments
Closed

Flooding with shares below the pool target (maxcoin branch) #326

prydie opened this issue Mar 28, 2014 · 4 comments

Comments

@prydie
Copy link

prydie commented Mar 28, 2014

We were seeing vast number of shares (100s per second) being submitted and validated by stratum that game from a single miner. These shares were always recorded at the pool target difficulty and the miner didn't respect vardiff.

The assumption I'm making especially after talking to @ahmedbodi on IRC is that stratum is not validating that shares actually match the target difficulty correctly.

If you give me some pointers I'm happy to do the leg work on this one.

@flound1129
Copy link

If you're not using quark algo, I'd check the vardiff code.

If you are using quark algo, turn on debug and verify that the difficulties reported for incoming shares match those in the miner. If not, then diff1 in diff_to_target in template_registry is wrong.

If they do match, then next place to look would be the vardiff code. The attacker probably needs to disconnect every time the pool's vardiff kicks in, resetting their connection's diff to POOL_TARGET.

@prydie
Copy link
Author

prydie commented Apr 11, 2014

@flound1129 I'm using the MaxCoin branch and it wouldn't be a problem if I believed the shares to actually be valid for the POOL_TARGET but I'm pretty sure given the rate at which they're being spammed the shares themselves aren't actually at that diff. If they were there would be no advantage to the miner in flooding with low diff shares (as the DB and stratum servers can more than handle it).

@prydie prydie changed the title Flooding with shares below the pool target Flooding with shares below the pool target (maxcoin branch) Apr 11, 2014
@prydie
Copy link
Author

prydie commented Apr 11, 2014

RocketPool will offer a bounty of 100 MAX for a fix for this bug with a unit test verifying the patches validity.

@flound1129
Copy link

I'm pretty sure it's got something to do with the vardiff code.
On Apr 11, 2014 4:57 AM, "Prydie" notifications@github.com wrote:

@flound1129 https://github.com/flound1129 I'm using the MaxCoin branch
and it wouldn't be a problem if I believed the shares to actually be valid
for the POOL_TARGET but I'm pretty sure given the rate at which they're
being spammed the shares themselves aren't actually at that diff. If they
were there would be no advantage to the miner in flooding with low diff
shares (as the DB and stratum servers can more than handle it).

Reply to this email directly or view it on GitHubhttps://github.com//issues/326#issuecomment-40195967
.

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

3 participants