Bitcoin Forum
May 09, 2024, 07:40:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 [30] 31 32 33 34 35 36 37 38 39 40 41 42 »
581  Bitcoin / Pools / Re: [Pool] SIMPLECOIN.US (0% fee, JSON, SSL, LP, OpenSource) Browser monitor added! on: June 28, 2011, 11:29:58 PM
Server load monitor now in place Wink
582  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin v2.0 Opensource PHP/MySQL on: June 28, 2011, 11:09:12 PM
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.
583  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin v2.0 Opensource PHP/MySQL on: June 28, 2011, 07:11:05 PM
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.net

Let me know if you have any questions or concerns.

Anni

Fork away Smiley

Let me know where your repo is and I'll put a link up on the OP.
584  Bitcoin / Project Development / Re: [20 BTC] Multithreaded Keep-alive Implementation in Bitcoind on: June 28, 2011, 07:07:36 PM
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!
585  Bitcoin / Pools / Re: [Pool] SIMPLECOIN.US (0% fee, JSON, SSL, LP, OpenSource) Browser monitor added! on: June 28, 2011, 07:04:55 PM
Sorry about the hiccup in connectivity there. Just updating bitcoin to improve the pool Wink
586  Bitcoin / Project Development / Re: [20 BTC] Multithreaded Keep-alive Implementation in Bitcoind on: June 28, 2011, 04:37:16 PM
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/
587  Bitcoin / Project Development / Re: [20 BTC] Multithreaded Keep-alive Implementation in Bitcoind on: June 28, 2011, 04:31:16 PM
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)...
588  Bitcoin / Project Development / Re: [20 BTC] Multithreaded Keep-alive Implementation in Bitcoind on: June 28, 2011, 03:39:00 PM
hmm, I was... tried with -p0, retrying.

Update: copied to src/src and renamed to rpc.diff. patch < diff worked fine. Thanks!

compiling now.
589  Bitcoin / Project Development / Re: [20 BTC] Multithreaded Keep-alive Implementation in Bitcoind on: June 28, 2011, 03:31:33 PM
running the diff against .23 I get 10 out of 10 hunks failed.....

does this only work against .22?
590  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin Opensource PHP/MySQL (v2 out!) on: June 28, 2011, 02:10:12 PM
Version 2 stable released, includes upgrade script from simplecoin 1.0 database.

All sql files are now in the sql/ directory.

Cheers!
591  Bitcoin / Pools / Re: [Pool] SIMPLECOIN.US (0% fee, JSON, SSL, LP, OpenSource) Browser monitor added! on: June 28, 2011, 01:34:40 PM
Thanks to 101studio.pl we now have a browser based worker/account monitor for Google Chrome! It's quite excellent, I use it myself.

https://chrome.google.com/webstore/detail/cnkonhfangjkibemiedpiahgedlffdma

Update: Also added new multi-threaded bitcoin daemon. Even better performance than before.
592  Bitcoin / Pools / Re: [Pool] SIMPLECOIN.US (0% fee, JSON, SSL, LP, OpenSource) Back Online! on: June 27, 2011, 10:54:27 PM
Freenode IRC chat added. #simplecoin
593  Other / Beginners & Help / Re: 3% faster mining with phoenix+phatk for everyone on: June 27, 2011, 10:01:50 PM
Donation sent. not much, but hopefully we can get a bunch of little donations headed your way!
594  Bitcoin / Pools / Re: [Pool] SIMPLECOIN.US (0% fee, JSON, SSL, LP) on: June 27, 2011, 06:30:49 PM
Lots of updates to the site framework. More updates coming soon Wink
595  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin Opensource PHP/MySQL (v2 beta out!) on: June 27, 2011, 06:28:57 PM
Anni, that security fix is in the repo Wink

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.
596  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin Opensource PHP/MySQL (v2 beta out!) on: June 27, 2011, 06:17:53 PM
Many Ozcoin improvements merged into main tree. Excellent work by Wayno & tom lightspeed!
597  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin Opensource PHP/MySQL (v2 beta out!) on: June 27, 2011, 03:27:33 PM
More updates to v2.

Currently folding in parts of Ozco.in fork to the v2 code where it makes sense.
598  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin Opensource PHP/MySQL (v2 beta out!) on: June 27, 2011, 03:04:53 PM
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)?

Quote
- Fixed a security issue (maybe introduced 1 or 2 as well Cheesy)

Security is my biggest priority. If you could forward anything you see it is greatly appreciated.

Quote
- 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.
599  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin Opensource PHP/MySQL (v2 beta out!) on: June 27, 2011, 02:40:48 PM
New updates for v2 checked in.
600  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin Opensource PHP/MySQL (v2 beta out!) on: June 26, 2011, 11:17:34 PM
Here is my proposed improved method...

Code:
//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.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 [30] 31 32 33 34 35 36 37 38 39 40 41 42 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!