Author

Topic: Orphaned blocks database / getblocks (Read 947 times)

full member
Activity: 195
Merit: 100
April 09, 2012, 06:39:22 PM
#4
Great news, looking forward to the patch. Thanx for the support.
legendary
Activity: 1072
Merit: 1181
April 09, 2012, 06:15:49 PM
#3
I have a patch scheduled for 0.7.0 that allows you to import a blk0001.dat file directly, as if downloaded from network. If the file contains blocks besides those in the main chain, those will be imported as well. (what is called orphan blocks in the client is something else: that are blocks are were never connectable to the known chain, and are only kept in memory).

There's no way to access data that is not in the main chain through the p2p protocol, though.
full member
Activity: 195
Merit: 100
April 09, 2012, 06:04:52 PM
#2
Did you every find a solution to this issue? I have the same problem...
hero member
Activity: 910
Merit: 1005
August 27, 2011, 11:21:26 AM
#1
I'm making a block explorer type site (http://pi.uk.com/bitcoin) which i want to include data about orphaned blocks and to detect possible attempted double spends.

The problem i have is during the initial block chain download the client only downloads block from the main chain. As I haven't been running bitcoind for long I only have data on 2 orphaned blocks e.g. http://pi.uk.com/bitcoin/142258. Is there some way to force getblocks to download everything? Or could someone would has been running bitcoind for a long time provide me with a copy of their database.

Thanks
Jump to: