Advertisement
organofcorti

hth9 mining simulator pseudo-code

Nov 19th, 2011
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. [code]
  2. maximumRounds<-100
  3. Difficulty<-1200000
  4. BitcoinReward<-50
  5. hop<-0.25*D
  6. minerHashrate<-1
  7. poolHashrate<-1000
  8. minerProp<-minerPPS<-0
  9. totalRoundShares<-geom.random(maximumRounds, Difficulty)
  10.  
  11. for i in 1 to maximumRounds
  12. if totalRoundShares<=hop then minerProp<-minerProp+minerHashrate/poolHashrate
  13. and minerPPS<-minerPPS+minerHashrate/poolHashrate*totalRoundShares
  14.  
  15. if totalRoundShares>hop then minerProp<-minerProp+minerHashrate/poolHashrate*hop/totalRoundShares
  16. and minerPPS<-minerPPS+minerHashrate/poolHashrate*hop
  17.  
  18. propEarnings<-minerProp*B
  19. ppsEarnings<-minerPPS*B
  20. [/code]
  21.  
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement