Author

Topic: How to make coinbase transaction of the Bitcoin Genesis block spendable ? (Read 1361 times)

legendary
Activity: 1456
Merit: 1083
I may write code in exchange for bitcoins.
It was a quirk, but now it's intentional, is what I was getting at Smiley  The relevant part in theymos' post:
Current versions of Bitcoin-Qt handle the block/transaction databases in a totally different way, so the genesis block's transaction is now just a weird special case in the code
( emphasis mine )

Sounds a little like a quirk which was reified for posterity or something like that.  Anyway, thanks for the clarification.  I guess Satoshi has plenty of spendable bitcoins if he ever wanted to actually do that.
hero member
Activity: 686
Merit: 500
FUN > ROI
It was a quirk, but now it's intentional, is what I was getting at Smiley  The relevant part in theymos' post:
Current versions of Bitcoin-Qt handle the block/transaction databases in a totally different way, so the genesis block's transaction is now just a weird special case in the code
( emphasis mine )
legendary
Activity: 1456
Merit: 1083
I may write code in exchange for bitcoins.
Because of some quirk in the implementation, the Genesis block coinbase transaction can not be spent.
It's not a quirk - it's on purpose by now.  Start reading here:
http://www.reddit.com/r/Bitcoin/comments/1nc13r/the_first_50btc_block_reward_cant_be_spend_why/cchdhrm

FWIW, the bitcoin wiki has that line about it being a "quirk"

The first 50BTC block reward went to address 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa, though this reward can't be spent due to a quirk in the way that the genesis block is expressed in the code (this may have been intentional).

Also the reddit page you linked to is interesting, but it doesn't really have anything about the motivation (from what I saw).  It seems to me that it may have indeed been a "quirk".  What did I miss?



hero member
Activity: 686
Merit: 500
FUN > ROI
Because of some quirk in the implementation, the Genesis block coinbase transaction can not be spent.
It's not a quirk - it's on purpose by now.  Start reading here:
http://www.reddit.com/r/Bitcoin/comments/1nc13r/the_first_50btc_block_reward_cant_be_spend_why/cchdhrm

Can anyone point where in the code this [...] is ?
There may be multiple places, but here's a specific test for it:
https://github.com/bitcoin/bitcoin/blob/master/src/main.cpp#L1785

and how to make it spendable.
You can't - you can try and fail, though Smiley
newbie
Activity: 1
Merit: 0
Because of some quirk in the implementation, the Genesis block coinbase transaction can not be spent.

Can anyone point where in the code this quirk is ? and how to make it spendable.

bitcoind, bitcoin.

Thanks
Jump to: