Author

Topic: The RPC connection keeps dropping out. (Read 544 times)

legendary
Activity: 1498
Merit: 1000
January 10, 2014, 11:05:04 PM
#1
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.
Jump to: