Skip to content
Sebastian Grewe edited this page May 29, 2013 · 15 revisions

THIS IS A WORK IN PROGRESS AND WILL BE EXPANDED AS NEEDED

Description

While going through the existing mmcfe projects crons I noticed that I had absolutely no idea what was going on in the backend. Since we ran into some issues with crons failing and having to do payouts by hand I decided to re-write the crons. The resulting structure shall be documented here (and reference to in the README).

Basic Crons

This project consists of the following basic crons working together to run all required tasks in the Backend:

  • findblock
  • pps_payout

We are currently aiming for these cron to run independently of each other with no specific runtime order or update frequency. This might change in the future.

findblock

This cron takes care of persisting generated blocks from litecoind to the database. Those will be used later to properly account shares to a block and reward the users.

pps_payout

For each persisted block in our database we check if it has been accounted for already and, if not, start counting the shares.

blockupdate

Runs through all blocks not matching minimum required confirmations and updates their status.

ticketupdate

Updates the setting table with a new price entry. Configured URL via global.inc.php.

Conclusion

We have some crons running already and others are still missing. This is an ongoing project and new crons will be added or existing ones improved as need be. If you read through our code and have ideas how to improve it or even add your own please let us know.

Clone this wiki locally