Bitcoin Forum
December 09, 2016, 02:07:53 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Orphaned blocks database / getblocks  (Read 723 times)
piuk
Hero Member
*****
expert
Offline Offline

Activity: 910



View Profile WWW
August 27, 2011, 04:21:26 PM
 #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

1481249273
Hero Member
*
Offline Offline

Posts: 1481249273

View Profile Personal Message (Offline)

Ignore
1481249273
Reply with quote  #2

1481249273
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481249273
Hero Member
*
Offline Offline

Posts: 1481249273

View Profile Personal Message (Offline)

Ignore
1481249273
Reply with quote  #2

1481249273
Report to moderator
Forp
Full Member
***
Offline Offline

Activity: 198


View Profile
April 09, 2012, 11:04:52 PM
 #2

Did you every find a solution to this issue? I have the same problem...
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1036


View Profile WWW
April 09, 2012, 11: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.

aka sipa, core dev team

Tips and donations: 1KwDYMJMS4xq3ZEWYfdBRwYG2fHwhZsipa
Forp
Full Member
***
Offline Offline

Activity: 198


View Profile
April 09, 2012, 11:39:22 PM
 #4

Great news, looking forward to the patch. Thanx for the support.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!