Bitcoin Forum
December 11, 2024, 11:34:45 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Two identical coinbase transactions?  (Read 218 times)
ondrere (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 2


View Profile
April 04, 2020, 08:54:28 AM
Merited by ABCbits (1), aliashraf (1)
 #1

Any non-coinbase transaction has some inputs. They contain previous transaction hashes, so as long as hash function is not broken, they are always unique. But what about coinbase transactions? In this case all inputs are ignored, so it is possible to create two identical coinbase transactions and place them in two different blocks. What happens when someone wants to spend these coins?
Last of the V8s
Legendary
*
Offline Offline

Activity: 1652
Merit: 4393


Be a bank


View Profile
April 04, 2020, 09:06:07 AM
Merited by ABCbits (1), aliashraf (1)
 #2

https://bitcoin.stackexchange.com/questions/80644/identical-coinbase-transactions
I'd like to say it was possible, it happened once and was dealt with, but let's wait for someone more with-it to confirm/refute.

Anyway, in general, consult that stackexchange. Most questions have been asked and most of them answered satisfactorily.

baro77
Member
**
Offline Offline

Activity: 90
Merit: 91


View Profile WWW
April 04, 2020, 09:51:54 AM
Merited by aliashraf (1)
 #3

Referring to this thread: https://bitcointalk.org/index.php?topic=5237590

BIP34 states the block height has to be written in coinbase transaction, so I guess duplicate coinbase transactions could exist only during a temporary chain split due to simultaneous mining of two blocks with coinbase recipient ODDLY being the same for both of them... anyway eventually disappearing during reorg

That said, I didn't know @Last of the V8s's more general answer, so thanks to both of you!

baro
domob
Legendary
*
Offline Offline

Activity: 1136
Merit: 1170


View Profile WWW
April 04, 2020, 10:59:52 AM
Merited by achow101 (3), ABCbits (1), aliashraf (1)
 #4

That was possible and actually happened, which is why BIP30 and then BIP34 were introduced as far as I remember.

Use your Namecoin identity as OpenID: https://nameid.org/
Donations: 1domobKsPZ5cWk2kXssD8p8ES1qffGUCm | NMC: NCdomobcmcmVdxC5yxMitojQ4tvAtv99pY
BM-GtQnWM3vcdorfqpKXsmfHQ4rVYPG5pKS | GPG 0xA7330737
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!