Bitcoin Forum
May 04, 2024, 03:49:32 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to make coinbase transaction of the Bitcoin Genesis block spendable ?  (Read 1333 times)
someshwar (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
June 04, 2015, 12:35:47 PM
 #1

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
1714794572
Hero Member
*
Offline Offline

Posts: 1714794572

View Profile Personal Message (Offline)

Ignore
1714794572
Reply with quote  #2

1714794572
Report to moderator
1714794572
Hero Member
*
Offline Offline

Posts: 1714794572

View Profile Personal Message (Offline)

Ignore
1714794572
Reply with quote  #2

1714794572
Report to moderator
1714794572
Hero Member
*
Offline Offline

Posts: 1714794572

View Profile Personal Message (Offline)

Ignore
1714794572
Reply with quote  #2

1714794572
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714794572
Hero Member
*
Offline Offline

Posts: 1714794572

View Profile Personal Message (Offline)

Ignore
1714794572
Reply with quote  #2

1714794572
Report to moderator
1714794572
Hero Member
*
Offline Offline

Posts: 1714794572

View Profile Personal Message (Offline)

Ignore
1714794572
Reply with quote  #2

1714794572
Report to moderator
TheRealSteve
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500

FUN > ROI


View Profile
June 04, 2015, 05:28:50 PM
 #2

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

tspacepilot
Legendary
*
Offline Offline

Activity: 1456
Merit: 1076


I may write code in exchange for bitcoins.


View Profile
June 09, 2015, 05:53:42 PM
 #3

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?



TheRealSteve
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500

FUN > ROI


View Profile
June 09, 2015, 06:10:57 PM
 #4

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 )

tspacepilot
Legendary
*
Offline Offline

Activity: 1456
Merit: 1076


I may write code in exchange for bitcoins.


View Profile
June 09, 2015, 11:09:15 PM
 #5

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.
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!