jtgrassie / monero-pool

A Monero mining pool server written in C
BSD 3-Clause "New" or "Revised" License
344 stars 125 forks source link

payout calculation #129

Closed abpei closed 1 year ago

abpei commented 1 year ago

Hey folks,

Not sure if it is a misunderstanding, misconfiguration, or bug I caused. When you only have a few addresses actively mining, hit a block, and the pool fee is zero, pretty much the entire block reward should be split across those miners according to the portion of their submitted shares?

In my case, only a fraction gets paid out. This happened with two blocks now.

pool-fee = 0.00 payment-threshold = 0.05

./pool/monero-pool/tools/inspect-data -p ./pooldata/ 42FgPdPy...fGyXmdcy 0.021116 2022-10-18 05:37:02 42V9X7Jj...PKhdEhUi 0.021932 2022-10-18 05:37:02 433arF2J...LAhfhV8y 0.005157 2022-10-18 05:37:02 43bW1P6D...kEedWmZy 0.005791 2022-10-18 05:37:02 46jf19kx...89HEZgUn 0.015083 2022-10-18 05:37:02 47a9QEsb...EGbuHkTV 0.068973 2022-10-18 05:37:02

That adds up to 0.14 but block reward was 0.66.

The sum of remaining balances add up to 0.001.

Sorry if this is the wrong place but IRC doesn't seem to be a thing anymore. Thanks for your help.

jtgrassie commented 1 year ago

1) If don't have more shares in the PPLNS window the pool can't pay out more of the reward. 2) IRC is still "a thing" and you can find #monero-pool on libera.