Code Monkey home page Code Monkey logo

miningfarm's People

Contributors

xenland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

miningfarm's Issues

error when importing sql-data

My webserver is running Apache/2 and MySQL client version: 5.1.30

I've downloaded the latest version but when i try to import the sql-data i get following error...

Error

SQL query:

-- Dumping data for table shares


-- Table structure for table shares_history

CREATE TABLE IF NOT EXISTS shares_history (
id bigint( 30 ) NOT NULL AUTO_INCREMENT ,
shareCounted int( 1 ) NOT NULL ,
blockNumber int( 255 ) NOT NULL ,
time varchar( 255 ) NOT NULL ,
rem_host varchar( 255 ) NOT NULL ,
username varchar( 120 ) NOT NULL ,
our_result enum( 'Y', 'N' ) NOT NULL ,
upstream_result enum( 'Y', 'N' ) DEFAULT NULL ,
reason varchar( 50 ) DEFAULT NULL ,
solution varchar( 257 ) NOT NULL ,
PRIMARY KEY ( id )
) ENGINE = InnoDB DEFAULT CHARSET = latin1 AUTO_INCREMENT =19979;

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--------------------------------------------------------

-- Table structure ' at line 4

BTC value in fiat chart error

BTC Value in fiat dnt get actual. The Chart dnt refresh itself and hangs on entry 2:01 no further entries are shown since a few days.

Basicaly the BTC Value chart should be actual and sync with the topright value of the btc.

database

Home page: Unknown column 'efficiency' in 'field list'

Database:
CREATE TABLE IF NOT EXISTS stats_userMHashHistory (
id int(255) NOT NULL AUTO_INCREMENT,
username varchar(255) NOT NULL,
mhashes varchar(20) NOT NULL,
efficiency varchar(5) NOT NULL,
timestamp int(20) NOT NULL,
PRIMARY KEY (id)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4704 ;

import phpmyadmin OK but "efficiency" not present..

no index file in sub-directories

just noticed there are no index files in the underlying directories.

solution: create an empty "index.php" file with this content and place the file into every directory you want to keep hidden from our users.

This way users get redirected to the parent directory.
No need to go into the system sub-directories.

Better stats

We need a stats display for the total Mhash of total workers.

Scaling Issue

Back-end works great, shares are being submitted and updated into the database no problems. However, front-end is getting slower and slower as 'shares' table grows. At 1.8Million rows in 'shares' currently. "statsUpdater.php" currently takes 2mins 40secs to get stats. Web pages currently take 10-15 seconds to load. This is an 8 core Xeon server with 4GB of RAM and a super optimized ext4 storage system. We are not storage or RAM bound right now. Load average is extremely low. There is something inefficient about 'shares'. I see we are doing large SELECT's on 'shares' that are taking a long time. I've looked at all possibly ways to increase performance of the front end and it's lead me to possibly Indexing some things. Using your database layout, nothing is really Indexed for these large SELECT's. I'm thinking about indexing epochTimestamp column, but I can't do that until the next round as it will lock the table. I might want to index other columns after that, not sure. Thoughts? Can't live with 15 second load times on the webpage, unfortunately.

Account Details Page is blank

Yes the account details palge is blank. It is due to small errors the code such as ";" and some comma i forgot.
Upon fixing these issues, Payouts don't work so I am working on that aswell thanks everyone :)

No Menu Editor

Just a reminder to myself no menu editor for editing menus.....

Donation Perks

We also need donation perks where admins can setup less server fees when the user makes a donation.

Ranks

We also need a ranking system for top miners. and block finders

Top right stats error

top right stats shows above the actual BTC Value
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in .../httpdocs/req/functions.php on line 391

functions missing code

pendingBalance is called from accountDetails, and it is defined in functions, but never populated with values. I have an old version of functions.php that had the block of code still in it. It was broken, so I fixed it. It now works on my site. Code below:

    //Get unconfirmed balance

        //Go through all the `shares_history` Blocks numbers that have been found

            $unconfirmedBalance = 0;

            $blockHistoryQ = mysql_query("SELECT DISTINCT `blockNumber` FROM `shares_history` WHERE `username` LIKE '$username.%'");

            while($block = mysql_fetch_array($blockHistoryQ)){

                //With the selected $block, check estimated balance from that round

                    $getRoundSharesQ = mysql_query("SELECT `id` FROM `shares_history` WHERE `blockNumber` = '".$block["blockNumber"]."' AND `username` LIKE '$username.%' AND `our_result` != 'N'");

                    $numRoundShares = mysql_num_rows($getRoundSharesQ);



                    $getTotalRoundSharesQ = mysql_query("SELECT `id` FROM `shares_history` WHERE `blockNumber` = '".$block["blockNumber"]."' AND `our_result` != 'N'");

                    $numTotalRoundShares = mysql_num_rows($getTotalRoundSharesQ);



                //Calculate balance

                    $unconfirmedBalance += round(50*($numRoundShares/$numTotalRoundShares), 8);



            }

---and then later on $this->pendingBalance = $unconfirmedBalance;

Installation Page

Have a install page where it configure the first blog post as well as the the heading before install is complete :)

adminPanel.php

Admin Panel settings not working
Unknown column 'currencyData' in 'field list'

Pretty urls

/customer/customername
to go a stats page of some sort

JSON WorkerStatus Always 0

I've looked over the code in /json/workerstatus.php and I've run the SQL commands manually. I suck at math and I can't figure out where the issue is. My workerstatus.php and database are exactly like yours.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.