Bitcoin Forum
November 07, 2024, 01:52:42 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind query on genesis block fails  (Read 694 times)
chekhov (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
March 01, 2014, 03:17:35 AM
 #1

I'm wondering why there is a problem quering the genesis block one and only transaction.

bitcoind getblockhash 0
000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f

bitcoind getblock 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
{
    "hash" : "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
    "confirmations" : 288387,
    "size" : 285,
    "height" : 0,
    "version" : 1,
    "merkleroot" : "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
    "tx" : [
        "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"
    ],
    "time" : 1231006505,
    "nonce" : 2083236893,
    "bits" : "1d00ffff",
    "difficulty" : 1.00000000,
    "nextblockhash" : "00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048"
}

bitcoind getrawtransaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b 1
error: {"code":-5,"message":"No information available about transaction"}

bitcoind version is 0.8.6

Thanks!
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4801



View Profile
March 01, 2014, 01:25:54 PM
 #2

The coinbase transaction in the genesis block is not indexed by Bitcoin-Qt.

As such, the bitcoins received in that transaction cannot be spent.
chekhov (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
March 01, 2014, 11:52:08 PM
 #3

There should be an interesting history/read about that? Satoshi himself designed it like this?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4801



View Profile
March 02, 2014, 12:46:13 AM
 #4

There should be an interesting history/read about that?

It appears to be an oversight.  I don't know that Satoshi ever explained any reasoning behind the particular behind it

Satoshi himself designed it like this?

Designed it like this?  Not sure, if it was intended in the design.  He did, however, code it like this.
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!