Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Stratum: Support for set_target and set_difficulty #2191

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leviathanch
Copy link

  • Adding support for set_target reported by flypool.org
  • Adding support for set_difficulty reported from f2pool.com
    in STRATRUM mode.
  • f2pool.com still causes a crash tho, because of a division
    by zero, which needs some investigation in what variables
    are not set to a usable default value.

* Adding support for set_target reported by flypool.org
* Adding support for set_difficulty reported from f2pool.com
  in STRATRUM mode.
* f2pool.com still causes a crash tho, because of a division
  by zero, which needs some investigation in what variables
  are not set to a usable default value.
@AzureCrimson
Copy link

Thanks for making the PR, I was just about to upstream my local patch.

I'll add that c3pool.com kicks miners that don't support set_target (or possibly fixed share difficulty), so this is a pretty important feature for me.

@jean-m-cyr
Copy link
Contributor

Pools should do a much better job of sticking to some form of standard!


m_session->nextWorkBoundary = h256(dev::getTargetFromDiff(nextWorkDifficulty));
}
}
else
Copy link

@Stoom Stoom Apr 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fun fact, this else never could execute before...

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

Successfully merging this pull request may close these issues.

4 participants