Commit Graph

246 Commits

Author SHA1 Message Date
Sebastian Grewe
3eb652402f adding est. shares for a block based on est time and share rate 2013-06-03 08:59:12 +02:00
Sebastian Grewe
494a09ca66 Update README.md
Adding donor section! Thanks to all donating their hard earned LTC to this project!
2013-06-02 22:31:07 +03:00
Sebastian Grewe
2efc7a647d Update run-crons.sh
Fixes #89
2013-06-02 18:41:45 +03:00
Sebastian Grewe
64e1177326 Merge pull request #88 from TheSerapher/cron-script
Adding new run-crons.sh script
2013-06-02 03:20:17 -07:00
Sebastian Grewe
bf110505d6 Adding new run-crons.sh script
This script can be used to run all cronjobs required for `mmcfe-ng`.
It can be expanded by pool users in the future by adding or removing
job from the CRONS list in the script.

Script assumed to run inside the cronjobs folder, this can be adjusted
via CRONHOME in the script.
2013-06-02 12:18:13 +02:00
Sebastian Grewe
0a404e6f39 Adding new option to configuration file
* `archive_shares`, true or false, to move shares to archive table
2013-06-02 08:45:06 +02:00
Sebastian Grewe
8c4bfa2992 fixed name for payout job 2013-05-31 14:46:24 +02:00
Sebastian Grewe
9193a859f5 Merge pull request #84 from TheSerapher/sql-structure-update
New database structure
2013-05-31 05:34:05 -07:00
Sebastian Grewe
ffc1c5439d New database structure
* Adds `share_id` to blocks table, see #83
2013-05-31 14:33:14 +02:00
Sebastian Grewe
ac2a9b30c5 Merge pull request #83 from TheSerapher/refactor-backend
Changed backend logics for block finding and payout
2013-05-31 05:31:06 -07:00
Sebastian Grewe
a7bc6fc342 Changed backend logics for block finding and payout
* Findblocks cronjob changes
 * Find & Store upstream share
  * Use last found `share_id` as starting ID or `0`
 * Find & Store upstream finder
  * Use last found `share_id` as starting ID or `0`
* Use stored information when running propotional payout
 * Fetch current checked blocks upstream share from block table
 * Fetch previous upstream share of previous block from block table
 * Calculated payouts in that range of IDs
* Updated `block.class.php` to store share_id in block and fetch highest `share_id`
2013-05-31 14:23:29 +02:00
Sebastian Grewe
f5da2110ef fixing/removing typo in tickerupdate cron 2013-05-31 12:15:16 +02:00
Sebastian Grewe
4917376908 Merge pull request #82 from TheSerapher/upstream-share-by-order
Changing upstream share finding function
2013-05-31 03:13:52 -07:00
Sebastian Grewe
8a1dc20ec8 Changing upstream share finding function
* Fetch all blocks unaccounted for in ASC oder (low to high height)
* Use lowest height block to find lowest ID upstream accepted share
* Use this share as the finding share for a block
* Set share as last found upstream share for further blocks
 * This only applies if shares are not deleted at all which they should!
2013-05-31 12:11:56 +02:00
Sebastian Grewe
969be407c4 Merge pull request #81 from TheSerapher/php-notice-fixes
Getting rid of various PHP notice warnings
2013-05-31 02:57:50 -07:00
Sebastian Grewe
b2725fbce5 Getting rid of various PHP notice warnings
* Assigned empty defaults on templates
* Added some variable checking
2013-05-31 11:56:56 +02:00
Sebastian Grewe
cd13feee70 Merge pull request #80 from TheSerapher/inline-documentation
Adding more in-line documentation and some cleanup
2013-05-30 00:56:43 -07:00
Sebastian Grewe
b5ab1a02fb Adding more in-line documentation and some cleanup 2013-05-30 09:55:21 +02:00
Sebastian Grewe
61658b76f4 changed error message for RPC errors 2013-05-29 21:18:24 +02:00
Sebastian Grewe
10266959a5 removed More button for blocks 2013-05-29 20:59:08 +02:00
Sebastian Grewe
bdc42c58c1 fetch last value from API instead of average
* Added curl as dependency in README
2013-05-29 20:54:34 +02:00
Sebastian Grewe
7e56f484e5 Merge pull request #79 from TheSerapher/api-auth
Properly abort API calls if api_key is invalid
2013-05-29 03:43:22 -07:00
Sebastian Grewe
69b2c2f517 Properly abort API calls if api_key is invalid
* Fixes an issue where any api_key would be validated
* Now returns user ID upon success, aborts script processing with error
  on fail
2013-05-29 12:41:53 +02:00
Sebastian Grewe
ee01bd0df0 Merge pull request #78 from TheSerapher/issue-74
change tx detection to check for orphaned blocks
2013-05-29 03:15:23 -07:00
Sebastian Grewe
36bfcf6b6b change tx detection to check for orphaned blocks 2013-05-29 12:14:30 +02:00
Sebastian Grewe
43320a77d8 Merge pull request #77 from TheSerapher/ticket-cron
Ticket cron
2013-05-29 02:04:19 -07:00
Sebastian Grewe
6b5245b489 new DB strucutre to change setting table to column name 2013-05-29 11:00:48 +02:00
Sebastian Grewe
2376c82c79 default to n/a on template if no value is stored yet 2013-05-29 10:59:10 +02:00
Sebastian Grewe
cdfb074076 Re-adding LTC/usd to website ministats header
* Use tickerupdate.php cron to update setting value
* Added new configuration variables for ticket updates
* Added some missing configuration vars for some URLs
2013-05-29 10:56:08 +02:00
Sebastian Grewe
44851cf82b Update README.md
Added existing and planned future payout systems as features
2013-05-29 07:01:39 +02:00
Sebastian Grewe
ddc1446a2b removing API reference since it is split into many methods now 2013-05-28 16:01:53 +02:00
Sebastian Grewe
2548d4b03d add API key back to account details
Fixes #73.
2013-05-28 15:35:28 +02:00
Sebastian Grewe
006faba666 Merge branch 'next' of github.com:TheSerapher/php-mmcfe-ng into next 2013-05-28 15:25:04 +02:00
Sebastian Grewe
c258a4860a updated support information 2013-05-28 15:24:16 +02:00
Sebastian Grewe
422e22dc3f Update README.md
Added Freenode IRC Chat contact information
2013-05-28 16:20:28 +03:00
Sebastian Grewe
a2eb5cc7b3 Register first user as admin
This commit fixes #50 and is needed for the admin panel
2013-05-28 14:33:03 +02:00
Sebastian Grewe
510ce89338 Use new BitcoinWrapper class, remove memcache calls 2013-05-28 11:50:37 +02:00
Sebastian Grewe
72207cf246 Merge pull request #72 from TheSerapher/api-page
Api page
2013-05-28 02:03:14 -07:00
Sebastian Grewe
f4a4235562 remove generic api page 2013-05-28 10:55:29 +02:00
Sebastian Grewe
d4331ed8dc Adding more actions for API page
* getblockcount
* getblocksfound (with limit support)
* getcurrentworkers
* getdifficulty
* getestimatedtime
* getpoolhashrate
* getpoolsharerate
* gettimesincelastblock
2013-05-28 10:50:16 +02:00
Sebastian Grewe
1e54a1a2d6 initial commit of a working API page 2013-05-28 10:13:26 +02:00
Sebastian Grewe
1fa412c89f Merge pull request #71 from TheSerapher/cache-update
Moved setCache method into StatsCacheClass
2013-05-28 01:11:07 -07:00
Sebastian Grewe
376bae1e2d Moved setCache method into StatsCacheClass
* Allow calling method via memcache wrapping call
* Make it available to all classes using StatsCache
2013-05-28 10:09:57 +02:00
Sebastian Grewe
75bee6ed60 fetch account balance across all users
* Used later for admin panel to show total amount of credits locked for
  users
* Used later for liquid asset calculations
2013-05-27 15:51:20 +02:00
Sebastian Grewe
658039fecf Merge pull request #69 from TheSerapher/issue-66
addressing #66 with higher timerange for upstream shares
2013-05-27 05:56:19 -07:00
Sebastian Grewe
e1f92218a3 addressing #66 with higher timerange for upstream shares 2013-05-27 14:55:13 +02:00
Sebastian Grewe
5ba2613d1d Merge pull request #68 from TheSerapher/sql-structure
added latest DB layout
2013-05-27 05:53:13 -07:00
Sebastian Grewe
7f1d36cc97 Merge pull request #67 from TheSerapher/orphan-blocks
Adding support for orphan blocks
2013-05-27 05:52:44 -07:00
Sebastian Grewe
798e5b21f7 added latest DB layout
* Added support for account tokens to reset password
* Added support for orphan transactions
* Added support for negative block confirmations
2013-05-27 14:48:57 +02:00
Sebastian Grewe
d44c236f2b Adding support for orphan blocks
* Adjusted blockupdate cronjob
 * Fetch block information via `gettransaction`
* Adjusted block class
 * Only getAllUnconfirmed where confirmations > -1
* Adjusted transaction class
 * added setOrphan method to mark orphaned transactions
* If block is orphaned
 * Mark all related transactions as Orphan_*type*
 * Set confirmations of block to -1 so it is ignored and marked as orphan
* Change transaction template, added listing for orphan transactions
* Add orphan status to block listings template
2013-05-27 14:44:40 +02:00