Arikado Gridcoin pool error report
I found error in manual reward distribution mechanism, and now I need to redistribute donated funds again. Don't worry, you shouldn't do anything.
Preamble
One of my users, Lasgermab, found, that he received too small amount from distribution. He asked me why. And I started to investigate.
What gone wrong
I checked my manual reward sender and found that it uses old project statuses mechanism.
Here is distribution of second donation fund:
Amicable Numbers, reward for this project: 0.0062584789727873 GRC
Asteroids@home, reward for this project: 0.0042357835459989 GRC
Citizen Science Grid, reward for this project: 0.00014409678129173 GRC
Collatz, reward for this project: 0.010377008837539 GRC
Cosmology@Home, reward for this project: 0.026609339645963 GRC
DHEP, reward for this project: 0.027500581152597 GRC
Einstein@Home, reward for this project: 0.10517102583595 GRC
Enigma@Home, reward for this project: 0.011044933097949 GRC
GPUGRID, reward for this project: 0.20842496438656 GRC
latinsquares, reward for this project: 0.00079719791701704 GRC
LHC@home, reward for this project: 4.5174166446175E-5 GRC
Milkyway@Home, reward for this project: 0.008446702397601 GRC
NFS@Home, reward for this project: 0.0055104802398983 GRC
NumberFields@home, reward for this project: 0.0024479113279016 GRC
Rosetta@home, reward for this project: 0.0089393488471495 GRC
SETI@home, reward for this project: 0.0044772481602708 GRC
SRBase, reward for this project: 0.0090222117024306 GRC
TN-Grid Platform, reward for this project: 0.010795361037731 GRC
Universe@Home, reward for this project: 0.10267660956912 GRC
VGTU project@Home, reward for this project: 226.71262054324 GRC
World Community Grid, reward for this project: 0.0076450475645341 GRC
yafu, reward for this project: 0.0067872985318006 GRC
yoyo@home, reward for this project: 2.2653040646545E-5 GRC
Most of funds were received by VGTU contributors, despite that project shouldn't be rewarded (not in superblock).
Fix
Fix requires only one change in billing.php:
Before:
$enabled_projects_array=db_query_to_array("SELECT `uid`,`name` FROM `projects`
WHERE `status` IN ('enabled','auto enabled','stats only') AND `present_in_superblock`=1");
After:
$enabled_projects_array=db_query_to_array("SELECT `uid`,`name` FROM `projects`
WHERE `status` IN ('enabled','auto enabled','stats only')");
After fix
Now rewards distributed correctly:
Amicable Numbers, reward for this project: 2.5574462130075 GRC
Asteroids@home, reward for this project: 1.7308979763192 GRC
Citizen Science Grid, reward for this project: 0 GRC
Collatz, reward for this project: 4.2404299941414 GRC
Cosmology@Home, reward for this project: 10.87356132442 GRC
DHEP, reward for this project: 11.237755600047 GRC
Einstein@Home, reward for this project: 42.976774854044 GRC
Enigma@Home, reward for this project: 0 GRC
GPUGRID, reward for this project: 85.170156867878 GRC
latinsquares, reward for this project: 0.32576458317709 GRC
LHC@home, reward for this project: 0.018459836871847 GRC
Milkyway@Home, reward for this project: 3.4516353179541 GRC
NFS@Home, reward for this project: 2.2517862379433 GRC
NumberFields@home, reward for this project: 1.0003071964516 GRC
Rosetta@home, reward for this project: 3.6529488962576 GRC
SETI@home, reward for this project: 1.8295693573417 GRC
SRBase, reward for this project: 3.6868097267181 GRC
N-Grid Platform, reward for this project: 4.4113841915968 GRC
Universe@Home, reward for this project: 41.957464017819 GRC
VGTU project@Home, reward for this project: 0 GRC
World Community Grid, reward for this project: 3.1240494738727 GRC
yafu, reward for this project: 2.7735414630584 GRC
yoyo@home, reward for this project: 0.0092568710810591 GRC
Bug bounty reward
User Lasgermab receive additional 150 GRC for that report.
Links
- Pool itself: https://grc.arikado.ru/ or https://gridcoinpool.ru/
- Github (updated recently): https://github.com/sau412/arikado_gridcoin_pool
Congratulations @sau412! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
To support your work, I also upvoted your post!
Vote for @Steemitboard as a witness to get one more award and increased upvotes!