Commit Graph

45 Commits

Author SHA1 Message Date
rog1121
ae5f6e4386 Cronsjobs Permissions 2014-03-01 18:04:31 -07:00
rog1121
93981f6044 Various Fixes 2014-03-01 17:57:43 -07:00
Sebastian Grewe
ee805b65ce [IMPROVED] PPLNS payout log format 2014-02-15 17:10:58 +01:00
Sebastian Grewe
78b8bf4c27 [FIX] Prop/PPLNS Double Payout log 2014-01-30 14:33:49 +01:00
Sebastian Grewe
8ca9744ce1 [CLEANUP] Coding style 2014-01-26 09:30:59 +01:00
Neozonz
bf05935447 [FIX] Call correct getCronError functions 2014-01-24 10:22:33 -08:00
cut
5705774dfb Lint on cronjobs/pplns_payout.php #1554 2014-01-23 12:11:18 -06:00
rog1121
9a23148adb Update pplns_payout.php 2014-01-22 09:24:22 -07:00
rog1121
21888a8153 Update pplns_payout.php 2014-01-22 09:05:21 -07:00
obigal
75729c6592 pplns payouts speed improvements / reworked insert method 2014-01-16 14:42:05 +01:00
Sebastian Grewe
418728071b [UPDATE] Allow deletion of accounts
Updated backend and theme to be able to deal with deleted accounts

    * Backends will skip any users that have no account_id associated with
      their shares
    * Updated round stats theme to show users as unknown if none can be found

    This will not fully address the issue of account deletion but at least
    wont break the system anymore.
2014-01-06 12:26:57 +01:00
Sebastian Grewe
d155804a06 [FIX] Skip payouts until block has a share_id 2013-11-11 12:51:06 +01:00
Sebastian Grewe
91d43a1b7f Merge pull request #835 from TheSerapher/issue-715-block-id-fix
Issue 715 block id fix
2013-11-10 08:15:39 -08:00
Sebastian Grewe
98259e786c [IMPROVED] More SQL logging on failed DB events in crons 2013-11-07 15:58:12 +01:00
Sebastian Grewe
a8b99484cc [FIX] Do not use Block Height to fetch prev block
This should fix issues with orhpan blocks followed by real ones with the
same height.

Fixes #715, attempt four!
2013-11-05 16:37:53 +01:00
Sebastian Grewe
f67e63b6fc [REFACTOR] Refactored classes for error handling
* [ADDED] More error codes
* [MODIFIED] Class updates to use Base Class all the time
* [MODIFIED] Cronjobs have been slightly adjusted
* [ADDED] More base class features
2013-11-05 14:34:31 +01:00
Sebastian Grewe
84bad3508e [FIX] Double error message in log 2013-11-05 07:28:07 +01:00
Sebastian Grewe
172444d3d8 [IMPROVED] Added logging failed SQL queries to payouts 2013-11-05 07:28:07 +01:00
Sebastian Grewe
ae45939fea [IMPROVED] Re-factored monitoring criticals/errors
* [ADDED] new monitoring method : endCronjob
* [IMPROVED] Use newly added error codes
* [ADDED] mail notifications, enabled by default
* [ADDED] cron disable on fatal errors with exit code != 0
* [ADDED] Command line swtich: -f = Force running crons even if disabled
* [ADDED] Disabled status in monitoring site

This will improve error handling in our cronjobs. Fatal errors now
require manual intervention by explicityly running crons with the force
option (`-f`). Until they are forced to run, crons will stay disabled.

Fixes #773 once merged
2013-11-05 07:28:07 +01:00
nicoschtein
42dc4594b5 [FIX] Double Payout Detection Fixes Orphan Block Issues
Fixes #715 when merged, for the third time..
2013-11-04 16:20:27 -02:00
Sebastian Grewe
ab4e5df2bc Merge pull request #810 from TheSerapher/issue-715-skip-orphans
Issue 715 skip orphans
2013-11-02 01:46:42 -07:00
nicoschtein
3a85792325 Changed email address to new "system_error_email" setting on PPLNS Cron 2013-10-30 16:16:54 -02:00
Sebastian Grewe
b98258bf62 [FIX] Fix payouts on orphans 2013-10-30 14:45:40 +01:00
Sebastian Grewe
c9435cf180 [FIX] Skip orphans for double payout detection
Should fix the case where orphan blocks are followed by valid blocks
with the same or lower height due to changing the main chain.

Fixes $715, specifically the orphan block issue.
2013-10-30 07:54:25 +01:00
Sebastian Grewe
a2472284a8 [FIX] Proper fetch Archive Shares
Is now in-line with getMininumShareId.
2013-10-27 03:28:41 +01:00
obigal
7e49e7c254 pplns-stats, block-stats paging, dynamic and reverse payout 2013-10-22 09:07:31 -04:00
Sebastian Grewe
1c1b311385 [FIX] Set block internally accounted for earlier 2013-10-12 19:54:31 +02:00
Sebastian Grewe
15d7b6d1fa [IMPROVED] Detect potential dual payout situations 2013-10-12 19:28:56 +02:00
obigal
66296a8f36 pplns_payout block average fix when multiple blocks found during a payout run 2013-10-02 16:42:03 -04:00
Sebastian Grewe
db89768cd5 Merge pull request #648 from TheSerapher/issue-145
Issue 145
2013-09-30 00:53:45 -07:00
Sebastian Grewe
43fa4358c2 [IMPROVED] Allow running crons with full path
Crons can now be called from any directory and will be executed inside
their working directory. Allows for more flexibility, e.g. taking out
the statistics cron and running it directly.
2013-09-30 09:46:34 +02:00
Sebastian Grewe
6eec747be6 fixing PPLNS payouts one last time 2013-08-22 16:16:04 +02:00
Sebastian Grewe
db754c146e Revert "Revert "adjusting pplns target to baseline shares""
Reverting the revert .... :-/

This reverts commit 2d27132725.
2013-08-22 15:20:46 +02:00
Sebastian Grewe
2d27132725 Revert "adjusting pplns target to baseline shares"
* Shares are already baselined when calculating rounds

This reverts commit c9a8f8dc65.
2013-08-22 14:51:30 +02:00
Sebastian Grewe
c9a8f8dc65 adjusting pplns target to baseline shares 2013-08-22 14:39:46 +02:00
Sebastian Grewe
f3a0cf0417 Fixing PPLNS payouts when exceeding target
Round shares are taken to only match PPLNS target. Round target was not
re-adjusted to reflect the new, lower amount of round shares.

* Fix: Properly adjust round target shares when exceeding PPLNS target

Fixes #588 once merged
2013-08-12 09:35:45 +02:00
Sebastian Grewe
97ac16b21a Fixing PPLNS target percentages
This should fix #529 with proportional payouts towards the calculated
PPLNS target are off.
2013-07-28 10:04:09 +02:00
Sebastian Grewe
3cfef93580 WiP to disable fees for specific accounts
* added new account table column: `no_fee`
* honor `no_fee` flag during payout process
* added upgrade SQL file for this feature

Address #260
2013-07-23 10:56:45 +02:00
Sebastian Grewe
60b4bba489 Fixing wrong round share calculations on PPLNS
This addresses #468, might be the actual fix already.
2013-07-16 21:49:12 +02:00
Sebastian Grewe
94d9c1eb4c Added cronjob monitoring to admin panel
* Added monitoring class to deal with monitoring events
* Added event calls to all important cronjobs
* Added cron_end include file for monitoring cleanups on successful runs
* Added Monitoring to autoloader
* Modified account page to check for running auto_payout in monitoring
* Added monitoring to Navigation bar
* Added monitoring controller page

Fixes #415
2013-07-10 10:40:11 +02:00
Sebastian Grewe
85c1a8eaf5 more debug information on non-existing block shares 2013-07-09 22:41:07 +02:00
Sebastian Grewe
00b3c45d2a Adding archive cleanup cron
Since this needs to be done for all payouts, moved into it's own cron.

* Adjusted run-crons.sh to trigger archive cleanup
* Adjusted payouts to remove purgeArchive calls
* Adjusted pps payout, removed old configuration variable

Further addresses #143
2013-07-09 21:59:44 +02:00
Sebastian Grewe
ba240000ab Latest version for PPLNS payouts
* Rebased with next to add logging functions
* Added block method to fetch specific block
* Modified getArchive shares method to be more constistent
* Added new global configuration
* Adjusted smarty globals with new configuration
* More verbose pplns cron with logging
* Re-target the round in case of PPLNS not being matched by archive

Fixes #143
2013-07-09 21:59:44 +02:00
Sebastian Grewe
394d8b52a9 Abort payout process if missing share_id
As discussed in #392 we should abort any payouts for rounds until the
issue is fixed.
2013-07-09 21:59:44 +02:00
Sebastian Grewe
2f2acdad6d First working version of PPLNS payouts
* Based PPLNS on Prop Payout script
* Using defaults from prop payout, no class adjustments
* Added more methods required for PPLNS
* Added block methods for dynamic payout calculations
* Added PPLNS Sidebar that also displays the PPLNS Target
 * Shares beyond this target will not be included in payouts
 * Shares missing to this target will be added from archives
* Enabled archiving by default for PPLNS
* Added configuration options for PPLNS
 * Documented the usage for PPLNS, defaults are sane
* Added pplns_payout to run-crons

Addresses #143 and if accepted will fix it
2013-07-09 21:59:44 +02:00