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
This commit is contained in:
parent
2c5f66feb6
commit
d2c6422f3d
@ -22,6 +22,13 @@ limitations under the License.
|
|||||||
// Include all settings and classes
|
// Include all settings and classes
|
||||||
require_once('shared.inc.php');
|
require_once('shared.inc.php');
|
||||||
|
|
||||||
|
|
||||||
|
// Check if we are set as the payout system
|
||||||
|
if ($config['payout_system'] != 'pps') {
|
||||||
|
verbose("Please activate this cron in configuration via payout_system = pps\n");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
// Fetch all transactions since our last block
|
// Fetch all transactions since our last block
|
||||||
if ( $bitcoin->can_connect() === true ){
|
if ( $bitcoin->can_connect() === true ){
|
||||||
$dDifficulty = $bitcoin->getdifficulty();
|
$dDifficulty = $bitcoin->getdifficulty();
|
||||||
|
|||||||
@ -22,6 +22,12 @@ limitations under the License.
|
|||||||
// Include all settings and classes
|
// Include all settings and classes
|
||||||
require_once('shared.inc.php');
|
require_once('shared.inc.php');
|
||||||
|
|
||||||
|
// Check if we are set as the payout system
|
||||||
|
if ($config['payout_system'] != 'prop') {
|
||||||
|
verbose("Please activate this cron in configuration via payout_system = prop\n");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
// Fetch all unaccounted blocks
|
// Fetch all unaccounted blocks
|
||||||
$aAllBlocks = $block->getAllUnaccounted('ASC');
|
$aAllBlocks = $block->getAllUnaccounted('ASC');
|
||||||
if (empty($aAllBlocks)) {
|
if (empty($aAllBlocks)) {
|
||||||
|
|||||||
@ -16,7 +16,7 @@ PIDFILE='/tmp/mmcfe-ng-cron.pid'
|
|||||||
CRONHOME='.'
|
CRONHOME='.'
|
||||||
|
|
||||||
# List of cruns to execute
|
# List of cruns to execute
|
||||||
CRONS="findblock.php proportional_payout.php blockupdate.php auto_payout.php tickerupdate.php notifications.php statistics.php"
|
CRONS="findblock.php proportional_payout.php pps_payout.php blockupdate.php auto_payout.php tickerupdate.php notifications.php statistics.php"
|
||||||
|
|
||||||
# Additional arguments to pass to cronjobs
|
# Additional arguments to pass to cronjobs
|
||||||
CRONARGS="-v"
|
CRONARGS="-v"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user