nimiq / mining-pool

Nimiq Mining-Pool Server
Apache License 2.0
39 stars 34 forks source link

Enable automatic pool owner payouts #2

Closed sisou closed 6 years ago

fiaxh commented 6 years ago

The payin table (as it is now) can be derived from the stored shares and the reward of that block (plus fees in the block and pool fees). Inserting owner payouts would mix different things, as there are no shares for that entry. This code considers the total balance of all users (potentially resulting from multiple mined blocks) for a payout that is attributed to a specific block in the payin table. This makes it hard to validate the payins during pool payout.

sisou commented 6 years ago

Well, can we then just not store the owner payout? Do you maybe habe a different idea how to do it? Because I and other people defiantly want to be able to be paid out.