Commit Graph

37 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
4be9ae288b [ADDED] Block height to prop payouts
So the payout indicates what block is being paid out.
2014-02-16 10:12:27 +01:00
Sebastian Grewe
950e607230 [IMPROVED] Proportional payout log format 2014-02-15 17:10:45 +01:00
Sebastian Grewe
78b8bf4c27 [FIX] Prop/PPLNS Double Payout log 2014-01-30 14:33:49 +01:00
Sebastian Grewe
c6e2e062de [FIX] Skip prop payouts with 0 valid shares
* [FIXED] Do not create 0 amount payout transactions for users w/o
  valid shares

Fixes #1569 once merged.
2014-01-24 16:19:10 +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
3edd7671a4 [FIX] Removed debug exit 2013-11-10 17:15:03 +01: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
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
9c33c8314a Changed email address to new "system_error_email" setting on Prop Cron 2013-10-30 16:20:45 -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
b1001950cf [FIX] Removed debug exit from prop payout 2013-10-12 19:57:18 +02: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
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
e7b8cb8d4a Remove number_format for transaction generation
* Fixes: Incorrect payouts due to number formatting
* Moved number_format to output only

Fixes #611
2013-08-19 08:48:27 +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
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
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
83f8438a9c last cleanup before merge 2013-07-08 08:49:55 +02:00
Sebastian Grewe
5e98496cec Update proportional_payout.php
Abort if no shares could be found for a block to allow user intervention to fix it.
2013-07-08 07:22:05 +02:00
Sebastian Grewe
6dc795fd77 Improved cron logging via logfiles
* Added 3rd party logger library KLogger
* Adjusted all cronjobs from verbose output to logging
* Added new logs folder for crons to write to
* Added new .gitignore for logs folder data
* Updated blocks class to only fetch blocks with no share_id
* Adjusted findblocks to use no blocks class method
2013-07-07 22:04:43 +02:00
Sebastian Grewe
5d57593f5d Abort payout process if share_id is missing
If we have a block with NO `share_id` we abort the entire process. Less
of an issue with proportional since PPS is still being paid out, but a
block round will never actually end.

This will allow for manual intervention by the user. Otherwise blocks
found after the one having issues might trigger the payout process and
pay out shares of the old block in a more recently found one.

Please use #392 for further help on this, I have yet to replicate the
unknown block finder issue with the proper amount of upstream shares.
2013-07-07 00:19:56 +02:00
Sebastian Grewe
2204b6d9f3 Adding support to pay out full block amount
* Configuration setting added: `reward_type`
* Default behaviour: `fixed` payout by `reward` setting
* Optional: `block` to payout full block amount to users

Fixes #76
2013-06-25 08:52:30 +02:00
Sebastian Grewe
d2c6422f3d Payout Systems should check for activation
* Check if configuration is setup to run a specific payout system
* Added all payout systems to cron script

Fixes #210
2013-06-18 10:41:11 +02:00
Sebastian Grewe
596b0eac93 Moving shares per block into findblock cron
To better support more payout systems I have moved the share calculation
for a block into the findblock cron. This way these statistics are
always available and not depending on the actual payout method.
2013-06-06 21:31:05 +02:00
Sebastian Grewe
4277fb26cc Removed PHP Notice warning when running cron
This fixes #102, we don't need to see this warning since it doesn't
affect the job at all.
2013-06-04 15:10:07 +02:00
Sebastian Grewe
8c4bfa2992 fixed name for payout job 2013-05-31 14:46:24 +02:00