Sebastian Grewe
52d079eaed
do not include archive table for hashrates, better formatting
2013-06-06 10:45:37 +02:00
Sebastian Grewe
7dc0736b77
First version for new user graphs
...
* Properly calculate hashrate
* Remove number formatting, it breaks the graph
* Not properly in order based on time but displays correct values
Addresses #90
2013-06-05 17:22:47 +02:00
Sebastian Grewe
0ad2069275
Merge pull request #114 from TheSerapher/issue-113
...
Adding reference to API on public stats page
2013-06-05 06:32:59 -07:00
Sebastian Grewe
8ee987a98d
Adding reference to API on public stats page
...
Addresses #113
2013-06-05 15:31:53 +02:00
Sebastian Grewe
21f8278f90
Merge pull request #112 from TheSerapher/issue-111
...
Adding support for public API polling
2013-06-05 03:25:58 -07:00
Sebastian Grewe
aff116849c
Adding support for public API polling
...
* Does not require a token
* Returns basic status as taken from default mmcfe
Addresses #111
2013-06-05 11:49:08 +02:00
Sebastian Grewe
f59f7e9fb0
Merge pull request #110 from TheSerapher/issue-108
...
Issue 108
2013-06-05 01:15:58 -07:00
Sebastian Grewe
11338cedf3
Add new threshold display to template
...
Forgot to add the template files that adds configurable thresholds
2013-06-05 09:17:10 +02:00
Sebastian Grewe
6c4fb84ee9
Adding min/max threshold configuration
...
* Check for min/max values set for auto payouts
* Display error messages to the user
* Sanitize values just in case we fall through the validation
* Updated template and class
* New configuration option added! Update your local configs!
Fixes #108
2013-06-05 09:11:25 +02:00
Sebastian Grewe
8bc7f6bf44
Merge pull request #107 from TheSerapher/issue-106
...
Do not deduct fees from balance when transmitting
2013-06-04 11:52:41 -07:00
Sebastian Grewe
e37fb70a46
Do not deduct fees from balance when transmitting
...
Fixes #106 , we want to transfer the entire balance and let the RPC
server deduct any fees that might apply.
2013-06-04 20:51:24 +02:00
Sebastian Grewe
3c1eb0cba0
Merge pull request #105 from TheSerapher/issue-104
...
Ignore rejected shares in top list calculations
2013-06-04 06:59:29 -07:00
Sebastian Grewe
c1682e2203
Ignore rejected shares in top list calculations
...
Fixes #104
2013-06-04 15:58:51 +02:00
Sebastian Grewe
930bb50800
Update README.md
2013-06-04 15:49:52 +02:00
Sebastian Grewe
cff3c2d32b
Merge pull request #103 from TheSerapher/issue-102
...
Removed PHP Notice warning when running cron
2013-06-04 06:10:58 -07:00
Sebastian Grewe
4277fb26cc
Removed PHP Notice warning when running cron
...
This fixes #102 , we don't need to see this warning since it doesn't
affect the job at all.
2013-06-04 15:10:07 +02:00
Sebastian Grewe
152db4b831
Merge pull request #101 from TheSerapher/issue-63
...
Issue 63
2013-06-04 05:35:20 -07:00
Sebastian Grewe
af3252abb2
Find ALL transactions, even unconfirmed
...
* This ensures that credits are not unlocked and available to the pool
2013-06-04 14:28:34 +02:00
Sebastian Grewe
91d225e340
Adding wallet information in Admin panel
...
Fixes #63 and adds proper wallet information:
* Wallet balance
* Locked balance for users
* Liquid assets available to pool owner
2013-06-04 14:03:46 +02:00
Sebastian Grewe
f1e0e5cb97
Merge pull request #100 from TheSerapher/issue-99
...
Re-adding admin flags to user list for admin panel
2013-06-04 04:47:26 -07:00
Sebastian Grewe
020ea2269b
Re-adding admin flags to user list for admin panel
...
Fixes #99
2013-06-04 13:46:56 +02:00
Sebastian Grewe
ad4b1e9a74
Merge pull request #98 from TheSerapher/admin-panel
...
Admin panel
2013-06-04 04:25:27 -07:00
Sebastian Grewe
b19473ff42
sorting does not work with number_format
2013-06-04 13:23:00 +02:00
Sebastian Grewe
d85ded7c5c
Moving from user to statistics class
...
* This fetches all users and joins with shares table
Should speed up things a fair bit.
2013-06-04 13:14:25 +02:00
Sebastian Grewe
4fa3089655
fixing JS crash when table has no content
2013-06-04 12:13:38 +02:00
Sebastian Grewe
43772f439b
fixing sort arrows showing behind text
2013-06-04 12:10:43 +02:00
Sebastian Grewe
38a66b917f
adding number format to admin user query table
2013-06-04 12:01:16 +02:00
Sebastian Grewe
60789b9332
adding user ID to table
2013-06-04 11:55:36 +02:00
Sebastian Grewe
065f5e6d16
Adding working user admin panel to query user DB
...
* Users are all fetched from the DB
* Each user is assigned special stats
* Hashrate
* Shares
* Balance
* Est. Payout
* Est. Donation
* Display in sortable and paginated table
This is not well optimized. Each user stats are grabbed individually
via the stats and transaction classes. It would probably make sense to
expand the statistics class to list a full user list with all statistics
available instead to cover this in a single SQL query.
2013-06-04 11:34:22 +02:00
Sebastian Grewe
ed0853202b
Initial file import for admin panel
...
* Added isAdmin to user class
* Run isAdmin on EACH page to ensure admin status hasn't changed
* Added main page with no content
* Added user query page with basic form, no content
2013-06-04 09:15:55 +02:00
Sebastian Grewe
c6347a8ba8
Merge pull request #97 from TheSerapher/issue-96
...
Addressing #96 , missing difficulty on stats page
2013-06-04 00:09:54 -07:00
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
18109685e7
Merge pull request #94 from TheSerapher/rename-worker-table
...
Renamed workers table to pool_worker
2013-06-03 02:01:39 -07: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
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