Post
Topic
Board Mining software (miners)
Re: Multipool - the pool mining pool (with source code)
by
GriphZero
on 09/07/2011, 15:01:52 UTC
Here is code for a bitcoinslc_rewards() subroutine.  I've been running it for two days on my local multipool to check the functionality.  It seems to get completed shares successfully, but shares don't exactly lineup correctly with the correct completed blocks.  This is somewhat the intended functionality of multipool where it assigns the rewards to the closest block by time.  Unfortunately the times in the database for completed blocks and the times on the Bitcoins.lc website don't line up exactly, so the block numbering is a bit off.  Running it modifies the database with the completed rewards, so be careful, and check it out first without sending multipool work from your miner.  See if you like how the rewards function is working.  If you don't like it, remove the call to bitcoinslc_rewards(), and reload from your previous datafile.

I'm not a perl programmer, and I mainly just copied the code from other rewards subroutines, and received some help from other forum members on the parsing.  Thanks!  If anyone comes up with an improved version, please post it.  Better yet would be if MultiPool himself/herself or someone else could setup a git repository that could be contributed to.

See updated code below. V