Bitcoin Forum
May 01, 2024, 08:37:45 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Estimating worker hashrate for scrypt using submitted shares (vardiff)  (Read 901 times)
gh2k (OP)
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile WWW
January 06, 2014, 01:27:28 PM
 #1

I'm using stratum-mining to run a stratum server for various coins and I'm trying to put a basic frontend on it to show things such as est. hashrate for workers. I'm using vardiff.

For SHA256 coins this is easy, as the 'shares' table has a 'difficulty' column and all I need to do is grab all the shares for a given period, sum the difficulty and multiply by 2^32 and divide by the number of seconds.

For Scrypt this doesn't work as the numbers that come out aren't right (unless I have radeons that have magically started working at 2.5Gh/s - I wish!) so obviously share difficulty means something else here. The numbers certainly look different -- for SHA256 they're something like 16, 32, 128, etc... - for scrypt they're floating point numbers like 1.32501.

What method should I use to estimate worker hashrate given these numbers?
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714595865
Hero Member
*
Offline Offline

Posts: 1714595865

View Profile Personal Message (Offline)

Ignore
1714595865
Reply with quote  #2

1714595865
Report to moderator
1714595865
Hero Member
*
Offline Offline

Posts: 1714595865

View Profile Personal Message (Offline)

Ignore
1714595865
Reply with quote  #2

1714595865
Report to moderator
1714595865
Hero Member
*
Offline Offline

Posts: 1714595865

View Profile Personal Message (Offline)

Ignore
1714595865
Reply with quote  #2

1714595865
Report to moderator
SirSavary
Newbie
*
Offline Offline

Activity: 35
Merit: 0


View Profile
January 14, 2014, 05:50:22 AM
 #2

To calculate the hashrate for Scrypt, use what you would for Bitcoin but do 2^16 instead of 2^32. Something related to 'target bits' and I haven't fully looked into it but the numbers I get back are reasonably accurate. Certain pool front-ends also use this math for their calculations.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!