Skip to content

getrawtransaction fails only on transaction in genesis block #133

Closed

Description

@MarkusTeufelberger

getrawtransaction e0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7 returns with "No information available".

I ran with txindex=1 and -reindex, so far all other transactions seem to be available. Before I start to sync with a completely new data folder from network, is this happening to others too or is this just an error on my end that I need to debug further? I use v0.11.0.13-g90ad641-beta, seems to be the latest version at the moment.

Activity

  1. schinzelh commented on Jan 24, 2015

    @schinzelh

    e0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7 is the coinbase transaction of the genesis block, which does not exist by design

    So the error message should be read as

    {'message': 'Genesis block coinbase transaction is not indexed-- yes, that is weird. No, we are not going to change that.', 'code': -5}

    See also bitcoin#3303

  2. MarkusTeufelberger commented on Jan 25, 2015

    @MarkusTeufelberger
    Author

    http://explorer.darkcoin.io/block/00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6 seems to have been able to retrieve + decode (?!) this transaction:
    http://explorer.darkcoin.io/tx/e0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7

    Anyways, as far as I understand it, while the merkle root in the genesis block of course can be used to calculate a theoretical TXID, the value in the genesis merkle root actually is not pointing to any valid transaction at all for bootstrapping reasons. Right? The I'll just mask out this specific "TXID" and move on...

  3. schinzelh commented on Jan 25, 2015

    @schinzelh

    explorer is only able to decode it because the tx is hardcoded in the abe code - it bypasses 'getrawtransaction' that way.

    https://github.com/bitcoin-abe/bitcoin-abe/blob/master/Abe/genesis_tx.py#L52-L54

    ""
    Given the hexadecimal hash of the genesis transaction (as shown
    by, e.g., "bitcoind getblock 0") return the hexadecimal raw
    transaction. This works around a Bitcoind limitation described at
    https://bitcointalk.org/index.php?topic=119530.0
    ""

    My understanding of the genesis block bootstrapping matches yours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions