diff --git a/cronjobs/pps_payout.php b/cronjobs/pps_payout.php index 06d4f3b4..459384d2 100755 --- a/cronjobs/pps_payout.php +++ b/cronjobs/pps_payout.php @@ -22,6 +22,13 @@ limitations under the License. // Include all settings and classes 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 if ( $bitcoin->can_connect() === true ){ $dDifficulty = $bitcoin->getdifficulty(); diff --git a/cronjobs/proportional_payout.php b/cronjobs/proportional_payout.php index e99387f2..61092006 100755 --- a/cronjobs/proportional_payout.php +++ b/cronjobs/proportional_payout.php @@ -22,6 +22,12 @@ limitations under the License. // Include all settings and classes 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 $aAllBlocks = $block->getAllUnaccounted('ASC'); if (empty($aAllBlocks)) { diff --git a/cronjobs/run-crons.sh b/cronjobs/run-crons.sh index f5cbaee7..c9dfd949 100755 --- a/cronjobs/run-crons.sh +++ b/cronjobs/run-crons.sh @@ -16,7 +16,7 @@ PIDFILE='/tmp/mmcfe-ng-cron.pid' CRONHOME='.' # 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 CRONARGS="-v"