poolgold / z-nomp-bitcoin-gold

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
24 stars 26 forks source link

incorrect luck days #10

Closed Z1gun closed 6 years ago

Z1gun commented 6 years ago

In libs/stats.js

 var _blocktime = 160;
                var _networkHashRate = parseFloat(coinStats.poolStats.networkSols) * 1.2;
                var _myHashRate = (coinStats.hashrate / 1000000) * 2;
                coinStats.luckDays =  ((_networkHashRate / _myHashRate * _blocktime) / (24 * 60 * 60)).toFixed(3);
coinStats.luckHours = ((_networkHashRate / _myHashRate * _blocktime) / (60 * 60)).toFixed(3);

But BTG block time is 600sec

gateway commented 6 years ago

interesting.. thats true.. hmm.. this might cause pool opts to freak out.. right now it seems wrong and when boosting it to the proper ave block time 10-11 minutes.. luck time will increase big time.

kevinmarson commented 6 years ago

@Z1gun created a pull request for you (#13)

martin-key commented 6 years ago

Fixed