stratum-mining-litecoin icon indicating copy to clipboard operation
stratum-mining-litecoin copied to clipboard

Help me understand vardiff configuration please

Open bonesoul opened this issue 11 years ago • 3 comments

I'm running a pool with https://github.com/moopless/stratum-mining-litecoin 's master branch and lately I've set vardiff=true to test it out.

my current vardiff setup is;

# ******************** Pool Difficulty Settings *********************
#  Again, Don't change unless you know what this is for.

# Pool Target (Base Difficulty)
POOL_TARGET = 16                        # Pool-wide difficulty target int >= 1

# Variable Difficulty Enable
VARIABLE_DIFF = True                # Master variable difficulty enable

# Variable diff tuning variables
#VARDIFF will start at the POOL_TARGET. It can go as low as the VDIFF_MIN and as high as min(VDIFF_MAX or Liteconin's difficulty)
USE_LITECOIN_DIFF = False   # Set the maximum difficulty to the litecoin difficulty. 
DIFF_UPDATE_FREQUENCY = 86400 # Update the litecoin difficulty once a day for the VARDIFF maximum
VDIFF_MIN_TARGET = 15                #  Minimum Target difficulty 
VDIFF_MAX_TARGET = 600                # Maximum Target difficulty 
VDIFF_TARGET_TIME = 30                # Target time per share (i.e. try to get 1 share per this many seconds)
VDIFF_RETARGET_TIME = 120                # Check to see if we should retarget this often
VDIFF_VARIANCE_PERCENT = 20        # Allow average time to very this % from target without retarget
#### Advanced Option #####
# For backwards compatibility, we send the scrypt hash to the solutions column in the shares table
# For block confirmation, we have an option to send the block hash in
# Please make sure your front end is compatible with the block hash in the solutions table.
SOLUTION_BLOCK_HASH = False # If enabled, send the block hash. If false send the scrypt hash in the shares table

so basically i set vardiff=true and only changed max_target to 600.

The thing is that on my sql database shares table, all records including the ones that after I enabled vardiff has a difficulty of 0.

I'm using php-mpos as the frontend ( https://github.com/TheSerapher/php-mpos ). So when no difficulty is assigned to a share when vardiff is on, how can php-mpos weight the share?

Am I missing a point?

bonesoul avatar Dec 10 '13 23:12 bonesoul

I would also like to know this, as my workers are currently getting a difficulty that is far too low.

sirsavary avatar Dec 13 '13 02:12 sirsavary

Be careful we found the workers hash rates were 3 times higher than they should of been. I think there is a bug.

litecoinsblog avatar Dec 17 '13 11:12 litecoinsblog

Check the issue list. It exists for a while.

Cheers, Sebastian

On 17.12.2013, at 12:46, litecoinsblog [email protected] wrote:

Be careful we found the workers hash rates were 3 times higher than they should of been. I think there is a bug.

— Reply to this email directly or view it on GitHub.

TheSerapher avatar Dec 17 '13 11:12 TheSerapher