Commit Graph

19 Commits

Author SHA1 Message Date
Sebastian Grewe
752b3e810f Fixing issue with delayed inserts for shares
When shares are inserted with a delay for performance optimizations,
this will cause block timestamps to be completely off with share
timestamps. Hence the timestamp limited search is now removed, it would
cause too many issues for Stratum users/pools.

Addresses #392
2013-07-06 23:11:28 +02:00
Sebastian Grewe
f4ce22bee8 Skip bogus upstream shares
This will fix an issue with blocks being assigned upstream shares that
are marked as valid but are not the actual solution for a block.

Only shares inserted when or after the block timestamp are now looked
at. This will ensure other shares inserted earlier and marked as
upstream valid are skipped.

This will not fix edge cases where many shares are inserted at the same
time and are all in the same timeframe of the block. Then the first
valid share in that time is used.

This worked fine on a testnet with a number of blocks found and false
shares inserted by hand.

Fixes #352
2013-07-03 15:01:08 +02:00
Sebastian Grewe
34509051e2 Properly detect if we did find an upstream share
Avoid returning true even if no share was found.

Addresses #189
2013-06-18 09:30:13 +02:00
Sebastian Grewe
4745a2f6f8 Adding support for PPS payout method
This commit changed a few things in the backend and classes code:

* Any <type>_PPS transaction does NOT need to be confirmed
* Queries updated for added <type>_PPS transactions
* Template updated to properly display these transactions

Cronjob

* Added pps_payput cron to run payouts based on worker submitted shares
* **IMPORTANT**: Can NOT be run with proportional_payout!

Addresses #70
2013-06-10 18:49:57 +02:00
Sebastian Grewe
8a1dc20ec8 Changing upstream share finding function
* Fetch all blocks unaccounted for in ASC oder (low to high height)
* Use lowest height block to find lowest ID upstream accepted share
* Use this share as the finding share for a block
* Set share as last found upstream share for further blocks
 * This only applies if shares are not deleted at all which they should!
2013-05-31 12:11:56 +02:00
Sebastian Grewe
b5ab1a02fb Adding more in-line documentation and some cleanup 2013-05-30 09:55:21 +02:00
Sebastian Grewe
e1f92218a3 addressing #66 with higher timerange for upstream shares 2013-05-27 14:55:13 +02:00
Sebastian Grewe
93fa758ab6 increase timerange for upstream share to cope with slower db writes 2013-05-24 15:31:29 +02:00
Sebastian Grewe
9536e7c193 fixing pps payout, getRoundShares system MUST be search by ID or round shares are NOT calculated properly 2013-05-14 17:58:10 +02:00
Sebastian Grewe
5c72a859eb added secondary table related to shares to share class 2013-05-14 16:30:11 +02:00
Sebastian Grewe
12f60a4567 adding DATETIME column for archive 2013-05-14 16:10:52 +02:00
Sebastian Grewe
9bf99e3c8e get both valid and invalid round shares 2013-05-14 12:44:42 +02:00
Sebastian Grewe
c4d5e31bac add method to return shares table name, added getRoundShares 2013-05-13 23:28:11 +02:00
Sebastian Grewe
e8dcba2dcc removed some warning output on shares class 2013-05-13 09:20:37 +02:00
Sebastian Grewe
91144afa4e search shares by IDs not timestamps, cleaned up transaction class in the process 2013-05-12 16:58:33 +02:00
Sebastian Grewe
47b3816d27 cleaned up crons, changed timestamp range to properly find shares, added verbose parameter 2013-05-11 18:51:10 +02:00
Sebastian Grewe
3971ea797c further work on sharecounter cron, almost all features available now 2013-05-11 09:15:19 +02:00
Sebastian Grewe
42d2fa2618 calculate propotional payout for all shares of this block 2013-05-11 00:22:23 +02:00
Sebastian Grewe
571e26413b adding new share class 2013-05-10 22:36:42 +02:00