Commit Graph

690 Commits

Author SHA1 Message Date
Sebastian Grewe
8b3aec6aad Merge pull request #394 from TheSerapher/issue-392-abort-payout
Abort payout process if `share_id` is missing
2013-07-06 15:23:12 -07:00
Sebastian Grewe
5d57593f5d Abort payout process if share_id is missing
If we have a block with NO `share_id` we abort the entire process. Less
of an issue with proportional since PPS is still being paid out, but a
block round will never actually end.

This will allow for manual intervention by the user. Otherwise blocks
found after the one having issues might trigger the payout process and
pay out shares of the old block in a more recently found one.

Please use #392 for further help on this, I have yet to replicate the
unknown block finder issue with the proper amount of upstream shares.
2013-07-07 00:19:56 +02:00
Sebastian Grewe
ba8fe0461b Merge pull request #393 from TheSerapher/issue-392
Fixing issue with delayed inserts for shares
2013-07-06 14:12:57 -07:00
Sebastian Grewe
752b3e810f Fixing issue with delayed inserts for shares
When shares are inserted with a delay for performance optimizations,
this will cause block timestamps to be completely off with share
timestamps. Hence the timestamp limited search is now removed, it would
cause too many issues for Stratum users/pools.

Addresses #392
2013-07-06 23:11:28 +02:00
Sebastian Grewe
74aeb25fec Merge pull request #391 from TheSerapher/issue-387
Hard coded block limit for pool statistics
2013-07-06 08:39:19 -07:00
Sebastian Grewe
9412107b53 Hard coded block limit for pool statistics
This should fix a potential DoS like attack when fetching a random
amount of blocks continously.

Fixes #387
2013-07-06 17:38:23 +02:00
Sebastian Grewe
a6c7d5eaa9 Merge pull request #390 from TheSerapher/issue-383
Fixing PHP Warning on admin->user panel
2013-07-06 08:34:52 -07:00
Sebastian Grewe
0719958353 Merge pull request #386 from TheSerapher/issue-380
Change message on empty donor list
2013-07-05 23:39:20 -07:00
Sebastian Grewe
7a1f80bd1a Merge pull request #385 from TheSerapher/issue-382
Fix PHP Warning on user login
2013-07-05 23:38:51 -07:00
Sebastian Grewe
c4592d2b6f Merge pull request #384 from TheSerapher/issue-315
Further attempt to clean up transactions list
2013-07-05 14:49:01 -07:00
Sebastian Grewe
2a47fbba4f Fixing PHP Warning on admin->user panel
This fixes #383
2013-07-05 23:45:32 +02:00
Sebastian Grewe
0d5653dda0 Change message on empty donor list
This fixes #380.
2013-07-05 23:28:51 +02:00
Sebastian Grewe
9b81d48e72 Fix PHP Warning on user login
While at it, I also extracted the hash function into it's own getHash
method. This will allow easy changes to hashing for string in the
future.

Fixes #382
2013-07-05 22:56:22 +02:00
Sebastian Grewe
346d9656d8 Merge pull request #381 from TheSerapher/issue-378
Use poolhash rate if nethash is smaller
2013-07-05 13:04:11 -07:00
Sebastian Grewe
7099b2cc04 Use poolhash rate if nethash is smaller
This should avoid some confusion for coins where the network hashrate
drops under the pool hashrate due to slow block finding rates.

Fixes #378
2013-07-05 22:02:16 +02:00
Sebastian Grewe
6e941de3b5 Merge pull request #379 from ilya-stromberg/issue-376
Fix #376 HTML/CSS markup at Statistics page
2013-07-05 12:59:57 -07:00
Ilya Stromberg
7a0f08d3d0 (#376) Fix HTML/CSS markup at Statistics page 2013-07-05 21:16:51 +04:00
Sebastian Grewe
7a194a6293 Further attempt to clean up transactions list
This hopefully cleans out remaining PHP warnings and table issues with
no/partial transactions available. Please test this out and report back
in #315.
2013-07-05 15:30:51 +02:00
Sebastian Grewe
9601f075ce Removing old upgrade SQL for old issues
To avoid confusion when setting up mmcfe-ng up for the first time I
decided to remove these files. If new ones should be required I will
base them on the then recent main structure and order them by number.
2013-07-05 13:38:10 +02:00
Sebastian Grewe
9eac465d4e Merge pull request #374 from TheSerapher/issue-372-mobile
remove link to block when blockexplorer empty
2013-07-05 02:05:24 -07:00
Sebastian Grewe
5654f38154 remove link to block when blockexplorer empty 2013-07-05 11:04:56 +02:00
Sebastian Grewe
838c190a9c Merge pull request #373 from TheSerapher/issue-372
Issue 372
2013-07-05 00:57:36 -07:00
Sebastian Grewe
57ce619ac2 updated dist config 2013-07-05 09:57:00 +02:00
Sebastian Grewe
a0243ee31e allow empty blockexplorer URL 2013-07-05 09:47:44 +02:00
Sebastian Grewe
a012fc2ee5 catch PHP warning 2013-07-04 16:06:59 +02:00
Sebastian Grewe
8719ca9b49 Merge pull request #370 from TheSerapher/issue-369
Issue 369
2013-07-04 04:28:36 -07:00
Sebastian Grewe
3d942e8434 Adding getpoolstatus API Method
Fixes #369
2013-07-04 13:26:58 +02:00
Sebastian Grewe
b8771091fb Adding link to JSON API to server stats page 2013-07-04 13:26:03 +02:00
Sebastian Grewe
c6e6c4dee6 Changed error catching in pools page 2013-07-04 13:25:41 +02:00
Sebastian Grewe
b3479a9c04 Adding further IFNULL checks to statistics class 2013-07-04 13:25:11 +02:00
Sebastian Grewe
e963072740 Merge pull request #368 from TheSerapher/issue-367
Issue 367
2013-07-04 04:03:11 -07:00
Sebastian Grewe
c9915ce628 Removed var_dump debug output 2013-07-04 13:02:36 +02:00
Sebastian Grewe
425b821618 Link API key to User API Call
Fixes #367
2013-07-04 13:01:48 +02:00
Sebastian Grewe
463b97ea50 Do not return null on empty valid/invalid shares 2013-07-04 13:01:29 +02:00
Sebastian Grewe
a1da4bd9b3 Merge pull request #366 from TheSerapher/issue-347
Properly allow '0' as a workername or password
2013-07-04 03:51:46 -07:00
Sebastian Grewe
dfa8d285ce Properly allow '0' as a workername or password
This fixes #347 as recommended at

http://de3.php.net/manual/en/function.empty.php

We allow anything else than an empty string.
2013-07-04 12:50:17 +02:00
Sebastian Grewe
03617f2212 Merge pull request #365 from TheSerapher/issue-354
Adding input check for AP and Donation
2013-07-04 03:42:48 -07:00
Sebastian Grewe
8056ce9f87 Adding input check for AP and Donation
Fixes #354
2013-07-04 12:42:03 +02:00
Sebastian Grewe
37b97de828 Merge pull request #364 from TheSerapher/round-estimates-precision
Added 8 digit estimates precision and balance
2013-07-04 03:18:27 -07:00
Sebastian Grewe
f3dd9caa2c Added 8 digit estimates precision and balance
This expands the prevision for LTC estimates to 8 digits. Since the
sidebar was widened, they should fit for most resolutions.
2013-07-04 12:17:09 +02:00
Sebastian Grewe
acba30a888 Merge pull request #363 from TheSerapher/issue-331
Adding shares archive table back in for hash calcs
2013-07-04 01:41:50 -07:00
Sebastian Grewe
4a8cc8f884 Merge pull request #362 from TheSerapher/issue-336
Remove link on mobile if chaininfo empty
2013-07-04 01:40:39 -07:00
Sebastian Grewe
b021440ab7 Removed debug exit on findblock cron 2013-07-04 09:12:11 +02:00
Sebastian Grewe
3ab9d5252f Merge pull request #341 from TheSerapher/issue-308
Adding dynamic block value support in PPS
2013-07-03 23:53:24 -07:00
Sebastian Grewe
44df131541 Merge pull request #361 from TheSerapher/issue-358
Fix PHP warning on empty news table
2013-07-03 23:51:45 -07:00
Sebastian Grewe
d848e3fe70 Fix PHP warning on empty news table
Fixes #358
2013-07-04 08:51:13 +02:00
Sebastian Grewe
19de6a813f Merge pull request #357 from TheSerapher/issue-348
Fixing mobile template warning on reset pw
2013-07-03 10:13:23 -07:00
Sebastian Grewe
bc1ca7feb3 Fixing mobile template warning on reset pw 2013-07-03 19:12:32 +02:00
Sebastian Grewe
8ee4c13a4f Merge pull request #353 from TheSerapher/issue-352
Skip bogus upstream shares
2013-07-03 06:06:18 -07:00
Sebastian Grewe
f4ce22bee8 Skip bogus upstream shares
This will fix an issue with blocks being assigned upstream shares that
are marked as valid but are not the actual solution for a block.

Only shares inserted when or after the block timestamp are now looked
at. This will ensure other shares inserted earlier and marked as
upstream valid are skipped.

This will not fix edge cases where many shares are inserted at the same
time and are all in the same timeframe of the block. Then the first
valid share in that time is used.

This worked fine on a testnet with a number of blocks found and false
shares inserted by hand.

Fixes #352
2013-07-03 15:01:08 +02:00