Commit Graph

229 Commits

Author SHA1 Message Date
Frederick Behrends
2c4cb4b743 added 2 new scripts to split the cronjob 2013-12-16 20:01:18 +01:00
Sebastian Grewe
185125fd7b [FIX] Added renamed cronjob 2013-12-15 10:56:47 +01:00
Sebastian Grewe
58eb7b6794 Merge pull request #968 from TheSerapher/issue-967
[CHANGED] Merge payout crons
2013-12-15 01:40:43 -08:00
huri
96b700ab36 Fixed assignment bug in findblock cron 2013-12-12 23:55:49 +01:00
Sebastian Grewe
afb5fc6c0d [CHANGED] Merge payout crons
* Merge manual and auto-payout into single cronjob
* Update template/code to reflect single payout cron
* Update monitoring page
* Update disable payouts option in admin panel settings
* Update account payout page to use new option

This will fix #967 once merged.
2013-12-12 11:45:33 +01:00
Sebastian Grewe
f0b01554eb [FIX] Payout failure due to remaining balances
Fixes #943 once merged.
2013-12-10 16:44:37 +01:00
Sebastian Grewe
8a3e38b882 [FIX] PHP Notice warning 2013-12-09 16:22:01 +01:00
Sebastian Grewe
23f72fb576 [UPDATE] Do not send mails on disabled payouts
Fixes #928 once merged.
2013-12-09 09:15:33 +01:00
Sebastian Grewe
f4beb36708 Merge pull request #919 from TheSerapher/issue-904
[IMPROVED] Added balance checks post payouts
2013-12-08 22:24:08 -08:00
Sebastian Grewe
21af8dd83f [CHANGED] Do not send mail on uptime robot update
Do not send a mail notification in case the uptime robot updates are
failing.

Fixes #897 once merged.
2013-12-07 14:17:42 +01:00
Sebastian Grewe
0740eca0ab [IMPROVED] Added balance checks post payouts
Fixes #904 once merged.
2013-12-05 18:12:40 +01:00
Sebastian Grewe
232dd76af5 [ADDED] TXID on debit transactions 2013-11-28 10:53:24 +01:00
Sebastian Grewe
385387f393 [IMPROVE] More verbose logs on addBlock errors 2013-11-25 09:15:31 +01:00
Sebastian Grewe
0c1d1010f8 [FIX] Re-added executable bit on findblock 2013-11-20 09:29:36 +01:00
root
a1493032d2 [FIX] undefined index: USERDATA 2013-11-18 13:20:23 +01:00
root
4236b8ac7c [UPDATE] back to default variables 2013-11-18 12:43:17 +01:00
root
510c076452 [FEATURE] blockfinder statistics 2013-11-18 12:43:17 +01:00
Sebastian Grewe
6899ac5b6c [FIX] Proper Uptime Robot API detection 2013-11-18 10:37:11 +01:00
Sebastian Grewe
21acec83d0 [FIX] Proper error on missing shares 2013-11-17 16:36:30 +01:00
Sebastian Grewe
6869862579 [UPDATE] Less verbose notification cron 2013-11-12 09:34:47 +01:00
Sebastian Grewe
5f0e8638dd [UPDATE] E0003 SQL logging 2013-11-11 17:36:01 +01:00
Sebastian Grewe
d155804a06 [FIX] Skip payouts until block has a share_id 2013-11-11 12:51:06 +01:00
Sebastian Grewe
ef120d9504 [FIX] Skip uptime robot with defaults set
This will skip any updates if we detect the default string in our
settings table. Otherwise the script will return an error and disable
itself.

Fixes #839 once merged
2013-11-11 10:01:52 +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
e2623eb4cc [FIX] Disable mail notifications on disabled crons 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
ab2b2d6062 Merge pull request #812 from TheSerapher/uptimerobot
Uptimerobot
2013-11-02 02:58:03 -07: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
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
5cbb469b56 [FIX] Default to 0 if no prev upstream share available 2013-10-30 14:11:08 +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
88a2a29b3b [UPDATE] Adding missing files 2013-10-29 09:23:52 +01:00
Sebastian Grewe
c6dd4086ff Merge pull request #764 from TheSerapher/payout-fixes
Payout fixes
2013-10-28 05:20:19 -07:00
Sebastian Grewe
a841880fe7 Merge pull request #760 from TheSerapher/issue-759
Issue 759
2013-10-27 07:02:02 -07:00
Sebastian Grewe
a2472284a8 [FIX] Proper fetch Archive Shares
Is now in-line with getMininumShareId.
2013-10-27 03:28:41 +01:00
Sebastian Grewe
7a79c66ba8 Merge branch 'next' into payout-fixes 2013-10-27 02:44:09 +01:00
Sebastian Grewe
d23358a2f7 [UPDATE] Reduce notification info logging 2013-10-27 02:54:21 +02: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
ac5c0fce95 [IMPROVED] Out of Order Share detection
* [ADDED] Allow findblocks to detect and fix out of order shares
* [IMPROVED] Share class extends Base class for common functions
* [IMPROVED] Added more debugging and logging output to cronjob
* [ADDED] Added various new methods to blocks, share, base classes

For an overview of errors thrown in crons, please check:

https://github.com/TheSerapher/php-mpos/wiki/Error-Codes

Fixes #759 once merged.
2013-10-24 12:04:00 +02:00
obigal
7e49e7c254 pplns-stats, block-stats paging, dynamic and reverse payout 2013-10-22 09:07:31 -04:00