Bitcoin Forum
April 26, 2024, 03:15:08 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Orphaned blocks database / getblocks  (Read 916 times)
piuk (OP)
Hero Member
*****
expert
Offline Offline

Activity: 910
Merit: 1005



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

1714144508
Hero Member
*
Offline Offline

Posts: 1714144508

View Profile Personal Message (Offline)

Ignore
1714144508
Reply with quote  #2

1714144508
Report to moderator
1714144508
Hero Member
*
Offline Offline

Posts: 1714144508

View Profile Personal Message (Offline)

Ignore
1714144508
Reply with quote  #2

1714144508
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714144508
Hero Member
*
Offline Offline

Posts: 1714144508

View Profile Personal Message (Offline)

Ignore
1714144508
Reply with quote  #2

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

Activity: 195
Merit: 100


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
Online Online

Activity: 1072
Merit: 1174


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.

I do Bitcoin stuff.
Forp
Full Member
***
Offline Offline

Activity: 195
Merit: 100


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:  

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