zone117x / node-open-mining-portal

A scalable all-in-one easy to setup cryptocurrency mining pool and portal written entirely in Node.js.
GNU General Public License v2.0
1.01k stars 1.02k forks source link

Worker shares are not showing #287

Open webchi opened 10 years ago

webchi commented 10 years ago

Have no shares for the workers http://multi.coinpool.ru/workers but in the pool stats there is valid shares http://multi.coinpool.ru/workers

Find out that shares in the api stats have very low values: "workers":{"XqnzMcxZfGiQpyDQwtrFszWMgBb8b44Q2n":{"shares":0.06999999999999999,"invalidshares":0,"hashrateString":"978.67 KH"} Perhaps rounded to integer values it gave 0.

Can't understand where problem is? Maybe need a multiplier for right shares count?

webchi commented 10 years ago

Founded out that shares counting right. The bad is in difficulty that is about 0.001 for x11 aloritm. I think need a muliplier to count shares right.

LiveChains commented 10 years ago

MPOS requires a MULITIPLYER yes, if you check the coin configs for some other X11 coins youll find what multiplyer (from memory which is bad its 256)

webchi commented 10 years ago

Good :+1: It has in MPOS but not implemented in default site.

webchi commented 10 years ago

@LiveChains why 256 is using for multiplyer?

eightsixeight commented 10 years ago

for nomp ... i would do this... in pages/workers.httml

{{? it.stats.pools[pool].algorithm == 'x11'}} {{= workerstat.shares \* 256 }} {{??}} {{=workerstat.shares}} {{?}}
sigwo commented 10 years ago

What line?