Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: gweedo on January 11, 2014, 04:05:04 AM



Title: The RPC connection keeps dropping out.
Post by: gweedo on January 11, 2014, 04:05:04 AM
I am using the bitcoind to parse the entire blockchain, right now I have -txindex=1 and I am on the testnet. I going thru the entire blockchain but after a couple 1,000 blocks, it starts throwing out a fatal error. That the response id isn't correct, is the rpc server not threaded? Or is it a php script thing? I am only going thru the blocks not transactions.

here is my script

Code:
$height=$bitcoinclient->getblockcount();
for($i=0; $i<=$height; $i++){
$reponse=$bitcoinclient->getblock($bitcoinclient->getblockhash($i));
}

I am doing some operation on it, also I am running this script in the command line not a web server so it isn't the timeout.