Bitcoin Forum
June 19, 2024, 01:08:41 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bug in the official bitcoind?  (Read 740 times)
crazydownloaded (OP)
Full Member
***
Offline Offline

Activity: 148
Merit: 100

Crazy!


View Profile
May 25, 2013, 07:57:13 PM
 #1

I'm running bitcoind (0.8.2) with txindex=1
I noticed that retrieving the first transaction always fails:
$ ./bitcoind getrawtransaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
error: {"code":-5,"message":"No information available about transaction"}


the other transactions works just fine:
$ ./bitcoind getrawtransaction 0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098
01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff0704ffff001d0104ffffffff0100f2052a0100000043410496b538e853519c726a2c91e61ec1 1600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781e62294721166bf6 21e73a82cbf2342c858eeac00000000


Do you have any idea why?

Thanks!

Est. February 2012
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1072
Merit: 1178


View Profile WWW
May 25, 2013, 10:30:37 PM
 #2

The genesis block's output is not actually part of the transaction database, as it cannot be spent.

The reason is simply because no version of bitcoin ever added it to its database when creating a new datadir. The reason is unknown - it may have been a bug or it may have been intentional by Satoshi, but changing it now would be a hard fork (which would only be exploitable by Satoshi, but still), and there is no good reason to do so now.

I do Bitcoin stuff.
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!