btccom / btcpool-ABANDONED

backend of pool.btc.com
https://pool.btc.com
MIT License
639 stars 408 forks source link

How to calculate and payout earnings for each worker? #416

Closed ghost closed 4 years ago

ghost commented 4 years ago

Does anyone know how to calculate payout for earnings per each worker by their job shares?

Any information at all is appreciated.

BobZombiE69 commented 4 years ago

if you read the docs , it says that this software use PPS mining system. So you can see the users "earn" is already calculated and ready for you in the database. BUT you may want to decrease it by some percent for example -4% as mining fee commission for yourself.

If you are looking for pplns and .... then you have to develop it yourself

YihaoPeng commented 4 years ago

see mysql table bpool_local_db.stats_workers_day, the field earn is what you want (unit: satoshi for BTC, ether for ETH).