Bitcoin Forum
December 06, 2016, 02:24:58 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 »  All
  Print  
Author Topic: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )  (Read 53602 times)
phorensic
Hero Member
*****
Offline Offline

Activity: 630



View Profile
June 21, 2011, 12:39:50 AM
 #121

Nevermind, my `time` column was screwed up, it was just an int instead of "`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP," .  Don't mind my n00b ramblings  Grin
1481034298
Hero Member
*
Offline Offline

Posts: 1481034298

View Profile Personal Message (Offline)

Ignore
1481034298
Reply with quote  #2

1481034298
Report to moderator
1481034298
Hero Member
*
Offline Offline

Posts: 1481034298

View Profile Personal Message (Offline)

Ignore
1481034298
Reply with quote  #2

1481034298
Report to moderator
1481034298
Hero Member
*
Offline Offline

Posts: 1481034298

View Profile Personal Message (Offline)

Ignore
1481034298
Reply with quote  #2

1481034298
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481034298
Hero Member
*
Offline Offline

Posts: 1481034298

View Profile Personal Message (Offline)

Ignore
1481034298
Reply with quote  #2

1481034298
Report to moderator
1481034298
Hero Member
*
Offline Offline

Posts: 1481034298

View Profile Personal Message (Offline)

Ignore
1481034298
Reply with quote  #2

1481034298
Report to moderator
1481034298
Hero Member
*
Offline Offline

Posts: 1481034298

View Profile Personal Message (Offline)

Ignore
1481034298
Reply with quote  #2

1481034298
Report to moderator
phorensic
Hero Member
*****
Offline Offline

Activity: 630



View Profile
June 21, 2011, 01:07:31 AM
 #122

You rock masterp!

Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
June 21, 2011, 01:25:58 AM
 #123

You rock masterp!



Thanks for your contributions masterp ive added yor code to be in the next update along with a couple of other fixes that will be included should be released tonight!
peedee
Newbie
*
Offline Offline

Activity: 28


View Profile
June 21, 2011, 10:27:24 PM
 #124

Great work guys!
xmasterpx
Newbie
*
Offline Offline

Activity: 25


View Profile
June 22, 2011, 07:23:37 AM
 #125

Hi,
Thanks phorensic   Smiley

But Xenland is rocking more Wink

@xenland
before i update my version. anything to do at the database?
or just that?
Code:
ALTER TABLE `stats_poolMHashHistory` ADD `totalMhash` INT( 50 ) NOT NULL

secondary it is maybe useful to write it down at the first post if someone want to make an update.

best regards
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
June 22, 2011, 07:27:09 AM
 #126

Hi,
Thanks phorensic   Smiley

But Xenland is rocking more Wink

@xenland
before i update my version. anything to do at the database?
or just that?
Code:
ALTER TABLE `stats_poolMHashHistory` ADD `totalMhash` INT( 50 ) NOT NULL

secondary it is maybe useful to write it down at the first post if someone want to make an update.

best regards
That looks about right, I believe totalMhash was the only field I used for MySql
you can find all current change log updates over at http://miningfarm.com/changeLog.php

Thanks everybody for your support!
xmasterpx
Newbie
*
Offline Offline

Activity: 25


View Profile
June 22, 2011, 07:30:21 AM
 #127

Hi,
yes i have seen this changelog.
But i cant see any sqltable changing. Because of that is was asking. :>

I will update now.
xmasterpx
Newbie
*
Offline Offline

Activity: 25


View Profile
June 22, 2011, 07:39:49 AM
 #128

Hi,
do you have tested your code?

TotalHashes arent working anymore. :>
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
June 22, 2011, 07:40:47 AM
 #129

Hi,
yes i have seen this changelog.
But i cant see any sqltable changing. Because of that is was asking. :>

I will update now.
Oh you want specifics? Its really hard to output that kind of information, I'm constantly updating my software to be-inline with my future plans like Modules and Skin chooser. In fact I believe there will be a state that my software wont need any more mysql changes, it'll be database pefect! Tongue

Thinking about a Lottery module? whatchu thinks?

P.S. total hashes updates to mysql but I forgot to output it to the data on the index, I'll post an update soon after I find my self in the forest
xmasterpx
Newbie
*
Offline Offline

Activity: 25


View Profile
June 22, 2011, 07:46:26 AM
 #130

Hi,
do you have tested your code?

TotalHashes arent working anymore. :>

May you use "spline" instead of "line" on the charts. it looks realy better.
use this code xen:
http://nopaste.info/46f62a7fde_nl.html

its showing the stats even you're logged out.

P.S.
A lottery modul?
Hmm i would not use it but would be nice.
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
June 22, 2011, 08:16:12 AM
 #131

Hi,
do you have tested your code?

TotalHashes arent working anymore. :>

May you use "spline" instead of "line" on the charts. it looks realy better.
use this code xen:
http://nopaste.info/46f62a7fde_nl.html

its showing the stats even you're logged out.

P.S.
A lottery modul?
Hmm i would not use it but would be nice.
Thanks for that, i was wondering about how you made your graph look so smooth i need to stop and ask more questions.

Personally i wouldnt use a lottory module either considering that someone could change my code to rig it. May i could run a local mining farm and the lottory module just outsources the interface, that could be a potientially huge jackpot if users from every pool participated with just one jack pot
Whatchu think?
xmasterpx
Newbie
*
Offline Offline

Activity: 25


View Profile
June 22, 2011, 08:32:22 AM
 #132

Hi,
That would be nice.
And i think each user can choose itself implement a form like for withdraw -> send to jackpot an amount X.X
or an selfchoosed automatic percentage on each round in the lottery.
if the jackpot pays out you send it back to the farm and the user get it in his balance.

But if you run it yourself my pool cant participate to this. cause we are farming namecoins :>
FreddyE
Newbie
*
Offline Offline

Activity: 27


View Profile
June 22, 2011, 09:29:56 AM
 #133

how do I set a pool fee?
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
June 22, 2011, 10:15:35 AM
 #134

Hi,
That would be nice.
And i think each user can choose itself implement a form like for withdraw -> send to jackpot an amount X.X
or an selfchoosed automatic percentage on each round in the lottery.
if the jackpot pays out you send it back to the farm and the user get it in his balance.

But if you run it yourself my pool cant participate to this. cause we are farming namecoins :>

Looks like I'll just have to run two lottos, Namecoin and Bitcoind lottory modules!!!!
I'm trying to think of a way that will make it so the user can send the payment to the pot with out allowing the pool operator to mess with the code....baffelling.....

Oh yeah freedyE pool fee options is comming soon I left that out by accident on the graphic design shift change, Thanks for the reminder Cheesy
phorensic
Hero Member
*****
Offline Offline

Activity: 630



View Profile
June 22, 2011, 06:06:27 PM
 #135

Ah dangit, you released a new version just as our private pool code is frozen while we find our first real block.  Looks like I have a lot more hours of hacking once we find our first block!
peedee
Newbie
*
Offline Offline

Activity: 28


View Profile
June 22, 2011, 09:02:03 PM
 #136

How would I query for the number of active workers ?
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
June 22, 2011, 09:08:13 PM
 #137

How would I query for the number of active workers ?
Code:
$fiveMinutesAgo = time();
$fiveMinutesAgo -= 60*5;

Code:
SELECT `id` FROM `stats_userMhashes` WHERE `timestamp` >= $fiveMinutesAgo AND `mhashes` > 0
try that?
xane
Jr. Member
*
Offline Offline

Activity: 45



View Profile WWW
June 22, 2011, 09:40:49 PM
 #138

Ok I read a couple of pages, but I can't find any info to WTF THIS SOFTWARE ACTUALLY DOES.  Tongue

Is it just a mining pool solution?

https://cardsforbitcoins.com - Instantly exchange Bitcoins for Amazon gift cards
peedee
Newbie
*
Offline Offline

Activity: 28


View Profile
June 22, 2011, 10:47:35 PM
 #139

Its actually like this :

$fiveMinutesAgo = time();
$fiveMinutesAgo -= 60*5;

$workers = mysql_query("SELECT count(*) FROM `stats_userMHashHistory` WHERE `timestamp` >= $fiveMinutesAgo AND `mhashes` > 0");

// Verify it worked
if (!$workers) echo mysql_error();

$nrworkers = mysql_fetch_array($workers);


Then where ever you want to display the amount of workers :

echo "$nrworkers[0]"


Btw the stats_userMHashHistory table is filling up pretty quickly, especially if the number of workers that have been created increases, I think this will be become a scalability bottleneck.
gigabytecoin
Sr. Member
****
Offline Offline

Activity: 280


View Profile
June 23, 2011, 04:18:29 AM
 #140

Its actually like this :

$fiveMinutesAgo = time();
$fiveMinutesAgo -= 60*5;

$workers = mysql_query("SELECT count(*) FROM `stats_userMHashHistory` WHERE `timestamp` >= $fiveMinutesAgo AND `mhashes` > 0");

// Verify it worked
if (!$workers) echo mysql_error();

$nrworkers = mysql_fetch_array($workers);


Then where ever you want to display the amount of workers :

echo "$nrworkers[0]"


Btw the stats_userMHashHistory table is filling up pretty quickly, especially if the number of workers that have been created increases, I think this will be become a scalability bottleneck.

Just don't use MySQL then. CouchDB or another database type optimized for large databases.
Pages: « 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!