Skip to content

proportional_payout

Sebastian Grewe edited this page May 31, 2013 · 1 revision

Description

We started with the Propotional Payout system. It seemed easiest to implement with the underlying shares table structure. We are doing all calculations on the pushpoold shares table to avoid overhead of moving shares around into temporary tables.

Workflow

The basic workflow of this cron:

  • Fetch all unaccounted blocks from Database
  • Calculate shares for all users according to blocks stored share ID
  • Add shares to statistics
  • Add proportional payout to transactions
  • Archive shares for potential debug review
  • Delete shares
  • Mark block as accounted
Clone this wiki locally