Sebastian Grewe
bdcc3f747c
Addressing #96 , missing difficulty on stats page
...
* Properly assign template variable
* Removed unneeded additional template
2013-06-04 09:08:30 +02:00
Sebastian Grewe
da1d7daaa2
Removed warning from worker list
...
* Workers can safely be removed even during a round
2013-06-03 20:54:58 +02:00
Sebastian Grewe
07d49f83d3
Changing hash- and share rate calculation SQL
...
* Do not include shares_archive table
* Main reason: This table is optional
* Secondary reason: Speeds up the query from 1.3s to 0.005s
* Drawback: Once a block is found it takes 10 minutes for the stats to
be accuracte again
This could potentially be reverted but since shares_archive is optional
and the speed increase is rather significant I'd like to keep it this
way.
2013-06-03 15:03:04 +02:00
Sebastian Grewe
0890914d69
Merge branch 'next' of github.com:TheSerapher/php-mmcfe-ng into next
2013-06-03 12:57:19 +02:00
Sebastian Grewe
8a50e14f0b
Fixing minor template issues
...
* Fixed donation link in userinfo bar
* Fixed sidebar table format with proper width
2013-06-03 12:30:37 +02:00
Sebastian Grewe
c16e12886a
Update global.inc.dist.php
...
* Adjusted default difficulty in `config.inc.dist.php` to `20` which seems to be stratum default.
2013-06-03 12:07:06 +03:00
Sebastian Grewe
96c9a4ae08
Renamed workers table to pool_worker
...
* This will fix issues with mining pools using the default name
* Back in line with default configurations for most mining pool software
* Fixes #93
2013-06-03 10:59:12 +02:00
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
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
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
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
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
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
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
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
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
c258a4860a
updated support information
2013-05-28 15:24:16 +02: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
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
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
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
587e5ba9a7
better alignment of numbers in some tables
2013-05-26 20:23:38 +02:00
Fred
b8bd2b904e
Fix to over lapping stats on sidebar
2013-05-25 12:58:37 -04:00
Sebastian Grewe
93d0ec06a6
adding proper headers for HTML mail
2013-05-25 12:25:41 +02:00
Sebastian Grewe
787942b6f9
working version of password reset with one time token
2013-05-25 12:08:51 +02:00
Sebastian Grewe
841d986726
initial work on password reset, not working fully yet
2013-05-25 10:58:53 +02:00
Sebastian Grewe
30a46979b9
adding configurable block explorer and chain info URLs
2013-05-24 16:16:53 +02:00
Sebastian Grewe
7b8aec1699
Merge pull request #57 from TheSerapher/block-stats
...
adding block status page for past 30 blocks, no graphs yet
2013-05-24 06:57:43 -07:00
Sebastian Grewe
b771920210
adding block status page for past 30 blocks, no graphs yet
2013-05-24 15:57:14 +02:00
Sebastian Grewe
93fa758ab6
increase timerange for upstream share to cope with slower db writes
2013-05-24 15:31:29 +02:00
Sebastian Grewe
1c5bd14646
removed hard link to index.php
2013-05-24 08:51:25 +02:00
Sebastian Grewe
3c99fef939
Merge pull request #56 from WKNiGHT-/patch-2
...
Fix broken link for workers
2013-05-23 14:10:18 -07:00
WKNiGHT-
5e8df562fc
Fix broken link for workers
2013-05-23 15:48:29 -05:00
WKNiGHT-
89f9673ec0
fix common link backs for register and worker
2013-05-23 15:43:14 -05:00
Sebastian Grewe
1bdf5e3156
added some more debug output for profiling
2013-05-23 10:02:11 +02:00
Sebastian Grewe
dfc3dc43e5
use difficulty set in config, not hard coded, for worker hashrates
2013-05-22 20:07:28 +02:00
Sebastian Grewe
e078c5447a
properly highlight user in top tables even if row is of class even
2013-05-22 17:09:49 +02:00
Sebastian Grewe
c30bd0ee60
fixing LTC/day display from earlier commit
2013-05-22 16:03:16 +02:00
Sebastian Grewe
eae1f564dd
adding proper difficulty when not authenticated
2013-05-22 16:00:27 +02:00
Sebastian Grewe
f42b4d81ca
adding user to top stats to always display even if not part of results
2013-05-22 15:45:32 +02:00
Sebastian Grewe
7b2c8e1725
fixing pool fee display, thanks @lhpool
2013-05-21 22:21:49 +02:00
Sebastian Grewe
2c890d2bd5
fix display of fee amount, based on est. block payout
2013-05-21 22:17:36 +02:00
Sebastian Grewe
0aab1dff9a
adding new fees variable to dist config
2013-05-21 14:08:39 +02:00
Sebastian Grewe
6429b2b442
adding support for pool fees
2013-05-21 13:57:49 +02:00
Sebastian Grewe
97eda88e2f
fixing worker updates and deletion
2013-05-21 11:30:46 +02:00
Sebastian Grewe
09671131e6
properly display payment address in transactions log
2013-05-20 21:01:55 +02:00
Sebastian Grewe
a120d41612
lets try to get around some rounding issue for balance and transactions
2013-05-20 20:01:49 +02:00
Sebastian Grewe
e4732f55ca
adding support for user donations, added all required changes into this commit
2013-05-20 19:38:21 +02:00
Sebastian Grewe
6ae51aa63d
fixing typo in dist config
2013-05-20 16:44:03 +02:00
Sebastian Grewe
9deee1fce4
Merge pull request #31 from TheSerapher/auto-payout
...
Auto payout
2013-05-20 07:32:48 -07:00
Sebastian Grewe
65bcabbd28
removing argument table
2013-05-20 16:31:37 +02:00
Sebastian Grewe
0e3ebe6bde
adding auto-payout cronjob
2013-05-20 16:29:11 +02:00
Sebastian Grewe
f7d5b1b2d1
Merge pull request #30 from TheSerapher/transparent-caching
...
Transparent caching
2013-05-17 08:10:09 -07:00
Sebastian Grewe
7197a318b7
adding more documentation
2013-05-17 16:41:28 +02:00
Sebastian Grewe
6a2173d504
fixed typo, added debug level to key store
2013-05-17 16:38:58 +02:00
Sebastian Grewe
6102357cb9
adding memcache switch to dist config
2013-05-17 16:26:30 +02:00
Sebastian Grewe
6ffaece837
allow caching to be more transparent and configurable
2013-05-17 16:25:45 +02:00
Sebastian Grewe
f3da885137
fix ordering for share contributors, for real
2013-05-17 13:57:32 +02:00
Sebastian Grewe
cf9e392867
fix ordering for share contributors
2013-05-17 13:56:11 +02:00
Sebastian Grewe
f14f0ff981
adding proper confirmations from global config
2013-05-17 13:52:48 +02:00
Sebastian Grewe
ccf322bde1
re-adding seperate tables for shares and hashes due to SQL load when combining them
2013-05-17 13:47:56 +02:00
Sebastian Grewe
aed9d58c6b
added proper shares per second to contributor list
2013-05-16 21:14:46 +02:00
Sebastian Grewe
88ff579647
removed last stats update since values are cached and not generated regularly
2013-05-16 21:14:29 +02:00
Sebastian Grewe
f67b5855a9
removed unused ministats field
2013-05-16 21:14:03 +02:00
Sebastian Grewe
f46655501a
removed unused smarty globals for now
2013-05-16 21:13:37 +02:00
Sebastian Grewe
ed313c403d
re-defined some defaults
2013-05-16 21:13:21 +02:00
Sebastian Grewe
16f9cc4390
adding proper shares per second
2013-05-16 21:12:59 +02:00
Sebastian Grewe
72156c543d
updated footer
2013-05-16 15:03:36 +02:00
Sebastian Grewe
a45140d3e0
moved more stats to stats class
2013-05-16 14:56:08 +02:00
Sebastian Grewe
e791d27671
added getTableName method
2013-05-16 14:47:51 +02:00
Sebastian Grewe
aadeac9f86
properly search using getSingle, missed search field type
2013-05-15 18:11:06 +02:00
Sebastian Grewe
ec3d6d7cbd
merger contributer and hashrate tables into a sortable table, added personal hashrate graphs, added JS files, updated statistics class and page controllers
2013-05-15 16:55:29 +02:00
Sebastian Grewe
1a2c357b59
removed admin link for now
2013-05-15 16:52:03 +02:00
Sebastian Grewe
884a202842
replaced fixed targetdiff with setting from configuration in user hash rate calculation
2013-05-15 13:26:53 +02:00
Sebastian Grewe
649b527a8f
further moved stats from user into statistics class, added more caching
2013-05-15 01:07:59 +02:00
Sebastian Grewe
d06b9b8db7
added more caching for smarty globals
2013-05-14 23:58:42 +02:00
Sebastian Grewe
9762081d9d
added word print for times < 1
2013-05-14 23:58:24 +02:00
Sebastian Grewe
1390c12a5d
updated user class, removed hashrate and added getTableName
2013-05-14 23:57:52 +02:00
Sebastian Grewe
9b961e04cf
cleaned up statistics, added some user specifc stats from user class to statistics class
2013-05-14 23:57:22 +02:00
Sebastian Grewe
1534b53686
removing a lot of uneeded JS
2013-05-14 23:56:51 +02:00
Sebastian Grewe
da6bcb1c48
properly display average time to find next block
2013-05-14 20:54:01 +02:00
Sebastian Grewe
0e7f7d75f2
adding special getRoundShares for statistics into stats class
2013-05-14 18:08:47 +02:00
Sebastian Grewe
9536e7c193
fixing pps payout, getRoundShares system MUST be search by ID or round shares are NOT calculated properly
2013-05-14 17:58:10 +02:00
Sebastian Grewe
839327179a
shares per second, not minute
2013-05-14 16:43:19 +02:00
Sebastian Grewe
7ebba88f04
adding new shares/minute to mini stats
2013-05-14 16:31:41 +02:00