Sebastian Grewe
35910ef097
[IMPROVED] Statistics log format
2014-02-15 18:32:39 +01:00
Sebastian Grewe
e46036325c
[IMPROVED] PPS payout log format
2014-02-15 18:17:12 +01:00
Sebastian Grewe
1d5acb48b2
[FIX] Wrong argument count
2014-02-15 18:16:57 +01:00
Sebastian Grewe
f62a47dd2c
[FIX] Abort cron on locking failure
...
Fixes #1762
2014-02-15 17:54:20 +01:00
Sebastian Grewe
ee805b65ce
[IMPROVED] PPLNS payout log format
2014-02-15 17:10:58 +01:00
Sebastian Grewe
950e607230
[IMPROVED] Proportional payout log format
2014-02-15 17:10:45 +01:00
Sebastian Grewe
aab216e117
[IMPROVED] Blockupdate log format
2014-02-15 15:57:53 +01:00
Sebastian Grewe
93b7fb6de2
[IMPROVED] Findblocks log formatting
2014-02-15 15:43:13 +01:00
Sebastian Grewe
6f1f56abb6
[ADDED] getrealbalance wrapper for payouts
...
During payouts, we must ensure our wallets main accounts has the funds
to payout users. Hence we implement a wrapper method:
* If account count == 1 we only have main account, return getbalance
* Else return our main accounts balance - calculated unconfirmed
This should keep getbalance untouched when used on other places but
gives our payout processing a proper main account balance.
It's mostly a wrapper for those wallets running multiple accounts in one
wallet. They are warned on the front-end already but this ensure payouts
process properly.
Fixes #1755 once merged.
2014-02-14 17:21:52 +01:00
iAmShorty
8046b5225f
[FIX] permissions
2014-02-14 17:11:29 +01:00
iAmShorty
2ac6540a8f
[FIX] removed from cronjob
2014-02-14 17:10:27 +01:00
Sebastian Grewe
a083b1c272
[REMOVED] Liquid Payout cron due to issues
...
Payouts did not work very well and caused more issues for pools than
being worth having this cron. We revert this and let them use
sendtoaddress again whenever they wish to deduct payouts from their pool
at their own discretion.
We may add this thing back in sometime later with a proper and working
implementation but no promises.
2014-02-14 11:39:11 +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
6f706b883d
Merge branch 'next' of github.com:MPOS/php-mpos into next
2014-02-14 09:42:16 +01:00
Sebastian Grewe
6d52f5d47c
[FIX] Added missing file, gitignore :/
2014-02-14 09:42:03 +01:00
Sebastian Grewe
682beb60d1
Merge pull request #1739 from MPOS/notification-cleanup
...
[ADDED] Notification cleanup script
2014-02-14 08:56:51 +01:00
Sebastian Grewe
bb2037d813
Merge pull request #1753 from andymornes/next
...
[FIX] Correcting user ID for new block emails
2014-02-14 06:34:51 +01:00
Andy Mornes
ac3bea9f1a
[FIX] Correcting user ID for new block emails
...
Also adding the currency to the notifications as well.
2014-02-13 13:26:48 -06:00
Sebastian Grewe
eb40e4080a
[ADDED] Log RPC TXID into logfile for payouts
2014-02-12 16:21:24 +01:00
Sebastian Grewe
d725f9bf5d
[ADDED] Sendmany config option
...
* Disable sendmany by default
* Allow people to enable the new feature via config
2014-02-12 16:21:24 +01:00
Sebastian Grewe
332aa5aaa4
[FIX] Apply TXFees before running sendmany
2014-02-12 16:21:24 +01:00
Sebastian Grewe
4359b6a649
[CHANGE] Made startup messages debug level
2014-02-12 16:21:24 +01:00
Sebastian Grewe
0e49e8440d
[ADDED] First draft: sendmany RPC support
...
We can now run payouts via sendmany:
* No big logical changes, sendmany is called once for MP and once for AP
* Instead of paying out via sendtoaddress, store in array and use
sendmany later
* Update all transactions with the RPC TXID returned by sendmany
Will fix #1238 once merged.
2014-02-12 16:21:23 +01:00
Sebastian Grewe
5f48d2dabc
[ADDED] Notification cleanup script
...
* [ADDED] Admin Panel Setting for max age for notifications
* [ADDED] Cronjob to clean out old notifications
* [ADDED] New cron to scripts and monitoring
Fixes #1672 once merged.
2014-02-12 10:47:42 +01:00
Andy Mornes
91a57903ce
New Block Notification additions
...
Adding the block number, finder, amount, and difficulty to the new block
notification email
2014-02-12 00:18:00 -06:00
Sebastian Grewe
0cf6e38dc3
Merge pull request #1705 from MPOS/cron-check-active
...
[IMPROVED] Check if cron is running in PHP scripts
2014-02-10 21:57:28 +01:00
Sebastian Grewe
9b5e9b6742
[FIX] Wrong Debit TX type on Manual Payout
2014-02-09 17:06:51 +01:00
Sebastian Grewe
5027da0415
[FIX] Cronjob Logs
2014-02-07 14:03:31 +01:00
Sebastian Grewe
754f69df2c
Merge pull request #1682 from MPOS/payout-balance-check
...
Payout balance check
2014-02-07 13:47:54 +01:00
Sebastian Grewe
ca1f70b885
[UPDATE] Use proper endCronjob in PPS RPC checks
2014-02-07 13:01:28 +01:00
Sebastian Grewe
2a8927af8f
[IMPROVED] Check if cron is running in PHP scripts
...
* Ensures we don't spawn more than one PHP process
* Will require admin-intervention to reset the cron_active flag in DB
Shouldn't trigger often but may help people.
2014-02-07 13:00:05 +01:00
Sebastian Grewe
c8fbc369cf
[FIX] API Key sample format
...
Fixes #1694
2014-02-06 11:20:57 +01:00
Sebastian Grewe
7cf3fb27fb
[UPDATE] Allow global notification settings
...
Fixes #1232 and allows further expansion in the future.
Addresses #1672 too.
2014-02-06 11:13:22 +01:00
Sebastian Grewe
bdaa4933fa
[FIX] Cron error code for monitoring
2014-02-05 16:16:23 +01:00
Sebastian Grewe
499aa986c0
[FIX] Cron error code for monitoring
2014-02-05 16:15:18 +01:00
Sebastian Grewe
3747543424
[UPDATE] Check for wallet balance before starting payouts
2014-02-05 15:30:42 +01:00
Sebastian Grewe
c00b6d6757
[IMPROVED] Payout logics
...
* [ADDED] More methods to our transaction class
* `createDebitAPRecord` and `createDebitMPRecord`, will handle the
* entire debit process
* Adds Debit transaction
* Adds TXFee transaction
* mark transactions as archived
* validate user is fully paid out
* send notification to user
* `getMPQueue` was added to unify the process of getting payout queues
* [MOVED] Only one mail template for both payout methods
* [ADDED] Some minor calls to user class
* [ADDED] Full address validation to bitcoin class
* [SQL] New SQL upgrade and Version Increment
* Adding UNIQUE index to coin_address in accounts table
* preperation for `sendmany` implementation
2014-02-03 08:16:58 +01:00
Sebastian Grewe
319d9439a4
Merge pull request #1621 from xisi/sessions-mclimiter-fixes
...
[UPDATE] Security updates and fixes
2014-01-31 05:55:09 -08:00
Sebastian Grewe
78b8bf4c27
[FIX] Prop/PPLNS Double Payout log
2014-01-30 14:33:49 +01:00
xisi
0643cf4b87
fixed crons, tested on 2 boxes
2014-01-29 18:33:34 -05:00
Sebastian Grewe
6e23480434
[FIX] Use proper variable for error report
2014-01-29 08:58:35 +01:00
xisi
6398e5dfec
merged session manager/memcache limiter
...
cleanup for PR
2014-01-28 07:26:33 -05:00
Sebastian Grewe
a0b36841c8
[FIX] Logic error
2014-01-27 12:30:26 +01:00
Sebastian Grewe
227a7c33de
[FIX] Reset TX and RPCTX Ids
2014-01-27 10:39:19 +01:00
Sebastian Grewe
1cd9352952
[FIX] Transaction ID and RPC Transaction ID
2014-01-27 10:31:18 +01:00
Sebastian Grewe
72d923737f
[WORKAROUND] Fully debit user before RPC call
...
* First debit the user fully for this transaction
* Try the payout RPC call
* Fail this so admins can first confirm it worked, then force payouts
* Added comment what line to remove if this happens a lot
This will further address #1586
2014-01-27 09:25:59 +01:00
root
0d5ee3ecd7
[UPDATE] adding user to log if no valid coin address set
2014-01-26 20:09:24 +01:00
Sebastian Grewe
0d2895f517
Merge pull request #1592 from iAmShorty/address-validation
...
[FIX] checking payout address
2014-01-26 07:41:08 -08:00
root
10ad4eecdd
[FIX] moved before balance check
2014-01-26 16:31:39 +01:00
danbi
f7548857ee
Update findblock.php
...
Make the E0005 error non-fatal, in order to prevent cronjobs being disabled in this condition.
Usually it is resolved on the next run.
2014-01-26 17:25:26 +02:00
root
71519d14d6
[FIX] checking payout address
2014-01-26 15:19:03 +01:00
Sebastian Grewe
1c94030c7b
[FIX] Regression bug
2014-01-26 11:17:19 +01:00
Sebastian Grewe
8ca9744ce1
[CLEANUP] Coding style
2014-01-26 09:30:59 +01:00
Neozonz
ff0915a5c4
Merge branch 'next'
2014-01-25 17:45:16 -05:00
Sebastian Grewe
643c21d3a7
[UPDATE] Logfile cleanup
...
* [REMOVED] Do not show row headers at each cron run
* [REMOVED] Extra newlines in notification cron
2014-01-25 21:35:02 +01:00
Sebastian Grewe
a343ac4047
Merge pull request #1568 from MPOS/payout-fail-bail
...
[FIX] Bail payouts on failed sendtoaddress calls
2014-01-25 08:38:56 -08:00
Sebastian Grewe
9e6a2a3bea
[FIX] Do not treat disabled notification as error
...
Fixes #1582 once merged.
2014-01-25 13:10:38 +01:00
Neozonz
b6eb348d42
[CLEAN] Code style
2014-01-24 10:51:30 -08:00
Neozonz
c0004d8a4f
[Look] Finally statisfied ;)
2014-01-24 10:22:35 -08:00
Neozonz
293a5944ca
[Improved] Look
2014-01-24 10:22:35 -08:00
Neozonz
189578b18a
[Improve] Wording
2014-01-24 10:22:35 -08:00
Neozonz
560a0f9f0f
[Improved] Wording
2014-01-24 10:22:35 -08:00
Neozonz
3bd21a9372
[FIX] Tabbing
...
[Improved] Wording
[Improved] Logic of conditions
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
568033d939
[FIX] Woopsie
2014-01-24 10:22:34 -08:00
Neozonz
adb5910de8
[FIX] Whoops
2014-01-24 10:22:34 -08:00
Neozonz
dd14c3491e
[FIX] Whoops
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
Neozonz
5a5bc255cc
[Enhance] Improved logging
...
[Fix] Added error messaging to all
2014-01-24 10:21:01 -08: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
2891a07637
[FIX] Bail payouts on failed sendtoaddress calls
...
* [WORKAROUND] Helps for coins that run a bad RPC implementation
* Addresses #1406 and wil at least stop double payouts
2014-01-24 12:15:23 +01:00
Sebastian Grewe
a1efdcf58a
Merge pull request #1563 from daygle/patch-8
...
Update run-payout.sh
2014-01-23 23:52:11 -08:00
Glen
be234ad1b1
Update run-payout.sh
...
Liquid payout was being processed before block(s) found/payout causing liquid balances to go in to the minus as the liquid payout job would see funds in wallet that were unassigned.
This change moves the liquid_payout.php cron as the last step to be performed.
2014-01-24 13:09:17 +11:00
Glen
d9b37b4adb
Update run-crons.sh
...
Liquid payout was being processed before block(s) found/payout causing liquid balances to go in to the minus as the liquid payout job would see funds in wallet that were unassigned.
This change moves the liquid_payout.php cron as the last step to be performed.
2014-01-24 13:08:03 +11: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
Sebastian Grewe
fbea334121
[REMOVED] Unused stats update
2014-01-19 17:22:40 +01:00
Sebastian Grewe
cf49db4535
[IMPROVED] Cronbased global Hash-/Sharerate cache
...
* [ADDED] New statistic method to fetch all user mining stats
* [ADDED] New global cache to getUserHash/Sharerate calls
* [ADDED] New memcache key for new global cache
Addresses #1471 and may fix it already if no other changes are required.
2014-01-19 17:05:27 +01:00
Sebastian Grewe
a572d0cea0
Merge pull request #1351 from TheSerapher/issue-1345
...
Issue 1345
2014-01-16 23:46:40 -08:00
Sebastian Grewe
1dfbeea5f7
Merge pull request #1420 from TheSerapher/issue-1343
...
[IMPROVED] jsonRPC Error Handling with CURL
2014-01-16 06:15:42 -08:00
obigal
75729c6592
pplns payouts speed improvements / reworked insert method
2014-01-16 14:42:05 +01:00
nicoschtein
618c50c49f
Deduct fee to payout amount value on email notification
2014-01-15 15:57:22 -02:00
Sebastian Grewe
f2f539ef53
[IMPROVED] Payout logging and indent
2014-01-15 16:12:00 +01:00
nicoschtein
0d285f044b
Changed txfee to txfee_auto and txfee_manual in payout.php
2014-01-14 19:12:00 -02:00
Sebastian Grewe
95aad7417d
[IMPROVED] Version detection in cronjobs
2014-01-12 09:28:21 +01:00
Sebastian Grewe
6aefea6b6f
[FIX] Better error handling
2014-01-10 16:41:05 +01:00
Sebastian Grewe
187721f48c
[FIX] Catch new jsonRPC exception
2014-01-10 16:34:37 +01:00
Sebastian Grewe
ead36cfd07
[FIX] End cronjob too
2014-01-10 16:34:37 +01:00
Sebastian Grewe
c29bda4e5d
[FIX] Config option detection
2014-01-10 16:34:37 +01:00
Sebastian Grewe
07b90dbc58
[FIX] Config option detection
2014-01-10 16:34:36 +01:00
Sebastian Grewe
90a8404bab
[CLEANUP] Code cleanup, error checking
...
Fixes #1315 once merged.
2014-01-10 16:34:36 +01:00