Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

What does diff means? #389

Open
pavlovdog opened this issue Oct 29, 2018 · 5 comments
Open

What does diff means? #389

pavlovdog opened this issue Oct 29, 2018 · 5 comments

Comments

@pavlovdog
Copy link

pavlovdog commented Oct 29, 2018

I've never seen this question been answered anywhere, so let be the first. Most likely it's pretty simple, so can you give some detailed explanation for the whole ports section:

    "ports": {
        "3036": {
            "tls":false,
            "diff": 7.5,
            "varDiff": {
                "minDiff": 0.04,
                "maxDiff": 16,
                "targetTime": 60,
                "retargetTime": 80,
                "variancePercent": 30
            }
        }

I can't understand why need to specify the difficulty in the configuration - it's one for all the network.

@igorvoltaic
Copy link

Hi,
That’s share difficulty for miners, not network difficultly.

@pavlovdog
Copy link
Author

@igorvoltaic can you explain how does this feature works? In my understanding, the pool just needs to create some kind of block template with an unknown nonce. And after that, it starts sharing this templates with the miners, setting up the different nonce range. Easy to see, that in this case, the difficulty is the same for all miners.

@igorvoltaic
Copy link

@pavlovdog well.. i'm not really into this. What i know is that almost every pool lets you set difficulty for your shares. But usually pool itself decides which difficulty is the best for you, according to your hash rate. Higher difficulty means it takes longer for your mining software to generate a share, but on the other hand that share has more value in this case. it has nothing to do with the network difficulty.

@interbiznw
Copy link
Collaborator

You set different ports with different difficulties for miners to choose from. They generally pick what diff port is closest to the diff their rigs run best at. A pool op can also set variable diff on the ports so it connects at the static diff and adjusts every x amount of seconds based off the retargetTime

@pavlovdog
Copy link
Author

@interbiznw Thanks for your answer! Am I right, that the diff value is always between 0 and current network difficulty / 8192?

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

No branches or pull requests

3 participants