Has anyone used this blockchain parser for Bitcoin https://code.google.com/p/blockchain/ ?
http://codesuppository.blogspot.in/2014/01/a-command-line-interface-for-blockchain.html
I tried to parse blockchain generated by Bitcoin (bitcoind -regtest -daemon) in regtest mode but it is not reading(parsing) it correctly.
I copied the file blk00000.dat (this is the only file generated in regtest mode) to /home/somesh/Desktop/blockchain-read-only/ folder. I executed the command:
./blockchain.out /home/somesh/Desktop/blockchain-read-only
output:
Successfully opened block-chain input file '/home/somesh/Desktop/blockchain-read-only/blk00000.dat'
Welcome ...
Commands available: ... (then prints all the available commands)
then I selected scanning option
scan
The following is the message I get on scanning
Scanning block-chain re-started from block 0 up to a maximum of 500000 blocks..<br>
Warning: Missing block-header; scanning for next one.
Failed to open block-chain input file '/home/somesh/Desktop/blockchain-read-only/blk00001.dat'<br>
Finished scanning block headers. Built block-chain with 0 blocks found..
It is working fine for Bitcoin's real blockchain but not for the blockchain generated in regtest mode.
I think the parser is not able to find the block header in blk00000.dat and is skipping to next file.
Warning: Missing block-header; scanning for next one.
what changes do I have to make ?
ls /home/somesh/Desktop/blockchain-read-only/blk00001.dat
confirms that the file exists? (Normally it would be in a subdirectory calledblocks
.) Can you also include the exact command you are running, with all arguments?