Commit Graph

68 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
e46036325c [IMPROVED] PPS payout log format 2014-02-15 18:17:12 +01:00
Sebastian Grewe
f43a5214c4 [FIX] PPS Payout processing
* [ADDED] Abort if we don't have enough shares to calculate PPS from
* [FIXED] Proper calculations for account shares, we dropped a share
  each run
* [ADDED] Error code if no new shares available
2014-02-14 10:55:17 +01:00
Sebastian Grewe
ca1f70b885 [UPDATE] Use proper endCronjob in PPS RPC checks 2014-02-07 13:01:28 +01:00
Sebastian Grewe
8ca9744ce1 [CLEANUP] Coding style 2014-01-26 09:30:59 +01:00
Neozonz
b6eb348d42 [CLEAN] Code style 2014-01-24 10:51:30 -08:00
Neozonz
560a0f9f0f [Improved] Wording 2014-01-24 10:22:35 -08:00
Neozonz
5661b9cda6 [FIX] Tabbing
[Improved] Wording
[Improved] Logic of conditions
2014-01-24 10:22:34 -08:00
Neozonz
c91bb682af [Improved] Logic 2014-01-24 10:22:34 -08:00
Neozonz
d278e99172 [LOGGING] Improved logging with block id associations 2014-01-24 10:22:34 -08:00
Neozonz
64fd2f4116 [LOGGING] Improved wording
[FIX] Call to variables before defined
2014-01-24 10:22:34 -08:00
Neozonz
4b5a2885b8 [FIX] Missing Bracket 2014-01-24 10:22:34 -08:00
Neozonz
8f80cf09b3 [FIX] Indenting 2014-01-24 10:22:33 -08:00
Neozonz
d0e3a88e27 [FIX] Indenting 2014-01-24 10:22:33 -08:00
Neozonz
bf05935447 [FIX] Call correct getCronError functions 2014-01-24 10:22:33 -08:00
Neozonz
b8d83463db [FIX] Various syntax issues 2014-01-24 10:21:02 -08:00
Neozonz
18d288fe50 [Enhance] PPS / Payout Crons - Improved logging and and improved fail safes
[Optimize] Removed Coin Daemon / RPC Address Validation
2014-01-24 10:21:01 -08: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
6cc367ad50 [FIX] Admin User Panel for PPS Payouts
This will fix #986 once merged.
2013-12-17 10:56:37 +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
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
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
a6f9c25b5b [UPDATE] Proper implementation of target bits
* [ADDED] New Config Option: Algorithm
 * scrypt and sha256d supported right now
 * might add SHA coin support across MPOS
 * Compatible with previous implementation
* [REMOVED] config option: pps_target
 * Replaced by config option: algorithm
 * Please update your config, defaults to srypt now!
* [ADDED] Unpaid Shares in Dashboard
* [MODIFIED] User estshares from DB query instead template math
2013-10-26 14:10:34 +02:00
Sebastian Grewe
0838bc7783 [FIX] Fixing PPS calculations
* [FIX] PPS estimations
* [FIX] PPS Value, PPS Payouts being off (too low)

Tested on testnet, estimates worked perfectly and payouts worked well.
2013-10-26 02:38:24 +02: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
2aad605cf2 minor cleanup 2013-08-22 11:27:09 +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
8809e3df53 Do not use number_format for inserting to DB
This will fix an issue with very large payouts not being inserted to the
DB properly. Moved number formatting to displaying output as it should
be.
2013-08-07 09:44:11 +02:00
obigal
53da013fab Update pps_payout.php 2013-08-07 09:36:26 +02:00
obigal
ef234fe80b Vardiff/pushpool and pps payout support 2013-08-07 09:29:48 +02:00
obigal
174bfdc0cf Update pps_payout.php 2013-08-07 09:29:48 +02:00
obigal
128050f508 Update pps_payout.php 2013-08-07 09:29:48 +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
271c776053 Fixing issue with wrong require
Fixes #469
2013-07-16 21:16:53 +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
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
83f8438a9c last cleanup before merge 2013-07-08 08:49:55 +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
cb7f114cbc Adding dynamic block value support in PPS
This will add the block reward typw to PPS systems. Prior to this, each
PPS value was hard coded to 50. Not only are other coins not based on
this but changing it would require code. Changed it that

* Default for fixed type is config reward
* Default for block type is **previous** blocks amount
** Fallback for first round is the fixed reward value

See in-line documentation of dist configuration. This should help new
pool owners to get setup and clarify things.

Fixes #308
2013-07-01 17:45:23 +02:00
Sebastian Grewe
4be963d7be Detect if we use POS difficulties or not
Fixes #275
2013-06-30 19:35:49 +02:00
Sebastian Grewe
af70a194c9 Adding support for POS coin
This will fix #275 and add proper support for a different implementation
of network difficulty.
2013-06-30 19:35:49 +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
006f4d7f8a updated PPS payout to support block share stats for users 2013-06-14 16:17:34 +02:00
Sebastian Grewe
b4a09f22ee archive/purge accounted PPS shares 2013-06-10 18:56:28 +02:00
Sebastian Grewe
41b35a2d96 moved table header to the left 2013-06-10 18:49:58 +02:00
Sebastian Grewe
cb3e02e896 properly format pps value to 12 digits 2013-06-10 18:49:57 +02:00