Commit Graph

3996 Commits

Author SHA1 Message Date
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
Sebastian Grewe
436aed65f1 fixing margin between sidebar and content 2013-05-27 12:45:22 +02:00
Sebastian Grewe
3d5eddecb8 added more number formatting in sidear 2013-05-26 20:44:34 +02:00
Sebastian Grewe
510d366a9e removing PPLNS references since pool runs propotional system for now 2013-05-26 20:30:29 +02:00
Sebastian Grewe
3849454a2e Merge branch 'next' of github.com:TheSerapher/php-mmcfe-ng into next 2013-05-26 20:29:58 +02:00
Sebastian Grewe
34de1ae36e removing PPLNS about page since pool is running propotional system for now 2013-05-26 20:29:05 +02:00
Sebastian Grewe
1c5b6c05fe Merge pull request #60 from TheSerapher/table-row-align
better alignment of numbers in some tables
2013-05-26 11:24:18 -07:00
Sebastian Grewe
587e5ba9a7 better alignment of numbers in some tables 2013-05-26 20:23:38 +02:00
Sebastian Grewe
d5bff0b1dc Merge pull request #59 from WKNiGHT-/patch-3
Fix to over lapping stats on sidebar
2013-05-25 12:16:55 -07:00
Fred
b8bd2b904e Fix to over lapping stats on sidebar 2013-05-25 12:58:37 -04:00
Sebastian Grewe
dadb6102c6 Merge pull request #58 from TheSerapher/password-reset
Password reset
2013-05-25 03:26:06 -07:00