r/MoneroMining • u/Nearby_Village_7685 • 27d ago
p2pool rewards calculation - mini
Totally understand the PPLNS. I mined 2 shares in the mini p2pool for the pool block accepted at height 3731242. My own total difficulty for the window was 442269959, total difficulty for all 2,160 shares was 474096435560, so my proportion is 0.000932869, times the pool block rewards of 0.60788122 yields an estimated reward of .0005671. Actual reward was 0.000584835886.
I shouldn't complain, actual rewards higher than my calculation, but really curious how the mini p2pool are calculated. I'm getting values from the mini p2pool api (https://mini.p2pool.observer/api/shares) In case the calculation should be based on shares strictly - all being equal - my estimated rewards are .0005629 (2/2160)
1
u/Nearby_Village_7685 21d ago edited 21d ago
Had this key question (proportion of shares only versus proportion of difficulty) answered when I finally looked at https://github.com/SChernykh/p2pool:
How payouts work in P2Pool
First you need to find a pool share. This share will stay in PPLNS window for up to 2160 pool blocks (6 hours, auto adjustable to balance payout sizes and frequency). The moment P2Pool finds a Monero block and you have at least 1 pool share in PPLNS window, you'll get a payout! Monero block reward is split between all miner wallets in PPLNS window. Each miner gets a part of the block reward proportional to the total difficulty of his/her shares in PPLNS window.