Author

Topic: How To calculate Difficulty from mining.set_difficulty response from pool? (Read 156 times)

newbie
Activity: 1
Merit: 0
Hello,

I am trying to make miner for keccak based coins such as Maxcoin and smartcash coin.

when i get response from pool in mining.set_difficulty
lets say for example difficulty = 128

formula to calculate target in python
ptarget = int(0x00ffff * 2** (8*(0x1e - 3)) / mining_set_difficulty_value)
pool_target = '%064x' %ptarget

please let me know, if i doing something wrong in it

Thanks and regards
Jump to: