Server load monitor now in place
|
|
|
Experimental branch created in github. All new development will go here until it is merged into a new version.
That said, just added Server load stats to the experimental branch. Should be good and stable. No db changes required.
|
|
|
Mike, I think ive decided to fork the codebase you have maintained into a new project as i see you heading in a different direction with v2 than what originally attracted me in the first place. Ill be keeping a SVN repo up and open so that my changes will be also available. I will still probably borrow from your project as you can do from mine where and when applicable. At this point i have more than 1390 lines of differences to the original v1 code that i checked out and so this just seems to make more sense to me. Also if you are curious, my version is running at http://btc.mfis.netLet me know if you have any questions or concerns. Anni Fork away Let me know where your repo is and I'll put a link up on the OP.
|
|
|
Okay, all builds have now been updated. (rpc.diff.txt, bitcoin-3diff.txt, rpc.cpp)
It now does keepalives correct if the client specified HTTP/1.1 and didn't ask for the connection to be closed or the client specified HTTP/1.0 and asked for the connection to be kept alive. If this doesn't fix your connection hanging issue, make sure you are either sending "HTTP/1.0" or "Connection: close".
That did it! Thanks!
|
|
|
Sorry about the hiccup in connectivity there. Just updating bitcoin to improve the pool
|
|
|
Having problems doing rpc calls from php now. any page using them just stalls out.... I'm guessing it's waiting on a connection close (that doesn't exist)...
It could be my bug or it could be your bug. I think it's my bug, and it only affects clients that either send HTTP/1.0 requests or send 'connection: close' headers. I'll fix it. I'm using the standard php bitcoin interface from Mike Gogulski: http://www.nostate.com/3962/bitcoin-php-a-php-library-for-bitcoin/
|
|
|
Having problems doing rpc calls from php now. any page using them just stalls out.... I'm guessing it's waiting on a connection close (that doesn't exist)...
|
|
|
hmm, I was... tried with -p0, retrying.
Update: copied to src/src and renamed to rpc.diff. patch < diff worked fine. Thanks!
compiling now.
|
|
|
running the diff against .23 I get 10 out of 10 hunks failed.....
does this only work against .22?
|
|
|
Version 2 stable released, includes upgrade script from simplecoin 1.0 database.
All sql files are now in the sql/ directory.
Cheers!
|
|
|
Freenode IRC chat added. #simplecoin
|
|
|
Donation sent. not much, but hopefully we can get a bunch of little donations headed your way!
|
|
|
Lots of updates to the site framework. More updates coming soon
|
|
|
Anni, that security fix is in the repo Also, worker update/delete is there from ozcoin code. (it doesn't roll in old workers yet though). The login attempt ban is also now in place.
|
|
|
Many Ozcoin improvements merged into main tree. Excellent work by Wayno & tom lightspeed!
|
|
|
More updates to v2.
Currently folding in parts of Ozco.in fork to the v2 code where it makes sense.
|
|
|
Some of the other things ive done so far are: - added worker deletion and improved layout of account details a bit did you merge the workers existing uncounted shares to another worker? Also, did you make sure that there is at least 1 worker (to keep from losing all shares)? - Fixed a security issue (maybe introduced 1 or 2 as well ) Security is my biggest priority. If you could forward anything you see it is greatly appreciated. - gotten rid of the login.php refresh page and replace it with a 2 second sleep after each login attempt (plans to make this safer)
Good idea, I was thinking a captcha after 2 unsuccessful logins by any 1 ip.
|
|
|
New updates for v2 checked in.
|
|
|
Here is my proposed improved method... //Get list of transactions $transactions = $bitcoinController->query("listtransactions \"*\" 200");
//Go through all the transactions check if there is 50BTC inside $numAccounts = count($transactions);
for($i = 0; $i < $numAccounts; $i++) { //Check for 50BTC inside only if they are in the generate category if($transactions[$i]["amount"] >= 50 && ($transactions[$i]["category"] == "generate" || $transactions[$i]["category"] == "immature")) { //At this point we may or may not have found a block, //Check to see if this account addres is already added to `networkBlocks` $accountExistsQ = mysql_query("SELECT id FROM networkBlocks WHERE accountAddress = '".$transactions[$i]["txid"]."' ORDER BY blockNumber DESC LIMIT 0,1")or die(mysql_error()); $accountExists = mysql_num_rows($accountExistsQ);
//Insert txid into latest network block if (!$accountExists) { //Get last winning block $lastSuccessfullBlockQ = mysql_query("SELECT n.id FROM networkBlocks n, winning_shares w where n.blockNumber = w.blockNumber ORDER BY w.id DESC LIMIT 1"); $lastSuccessfullBlockR = mysql_fetch_object($lastSuccessfullBlockQ); $lastEmptyBlock = $lastSuccessfullBlockR->id;
$insertBlockSuccess = mysql_query("UPDATE networkBlocks SET accountAddress = '".$transactions[$i]["txid"]."' WHERE id = $lastEmptyBlock")or die(mysql_error()); //Update site balance for tx fee $poolReward = $transactions[$i]["amount"] - $bonusCoins; mysql_query("UPDATE settings SET value = value + $poolReward WHERE setting='sitebalance'"); } } }
//Go through networkblocks and update confirms as needed $winningAccountQ = mysql_query("SELECT id, accountAddress FROM networkBlocks WHERE accountAddress <> '' AND confirms < 120"); while ($winningAccountR = mysql_fetch_object($winningAccountQ)) { $txInfo = $bitcoinController->gettransaction($winningAccountR->accountAddress); if (count($txInfo["confirmations"]) > 0) { mysql_query("UPDATE networkBlocks SET confirms = ".$txInfo["confirmations"]." WHERE id = $winningAccountR->id"); } } Also, I'm thinking of ways to remove shares_history, I hate having so many table joins slowing things down.
|
|
|
|