Bitcoin Forum
April 27, 2024, 01:06:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: The RPC connection keeps dropping out.  (Read 524 times)
gweedo (OP)
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
January 11, 2014, 04:05:04 AM
 #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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!