Author

Topic: Is it possible to have two transaction IDs that are exactly the same? (Read 2802 times)

legendary
Activity: 1596
Merit: 1012
Democracy is vulnerable to a 51% attack.
You can maliciously, or stupidly, create two transactions with the same ID. The easiest way is to mine two blocks and include in each one only a single transaction -- the coinbase transaction, with the same payout address, same payout amount, and the same coinbase.
legendary
Activity: 1204
Merit: 1015
It is possible (though very rare) for the exact same transaction to appear twice in the block chain, however.

Can you please explain under what circumstances this could happen? I couldn't find anything.
See blocks 91812 and 91842 for one example.
sr. member
Activity: 288
Merit: 263
Firstbits.com/1davux
It is possible (though very rare) for the exact same transaction to appear twice in the block chain, however.

Can you please explain under what circumstances this could happen? I couldn't find anything.
administrator
Activity: 5222
Merit: 13032
Transaction IDs are SHA-256 hashes of transactions. It's very safe to use them as unique IDs, and it's a waste of time to try to detect collisions.

It is possible (though very rare) for the exact same transaction to appear twice in the block chain, however.
newbie
Activity: 42
Merit: 0
Thanks for that.

That's what I thought.

Since blockexplorer allows you to search by transaction id... you should not be able to have a duplicate one I would think.
full member
Activity: 308
Merit: 100
Yes, it is possible... But is very very very unprobable. They are more possible directions that atoms on the hole earth, but im not really sure.
newbie
Activity: 42
Merit: 0
Or would that be considered a collision of some sort? What exactly is a transaction id? A hash of some sort I presume?

I couldn't find much about transaction ids in particular on the wiki.

How would the bitcoin client treat two separate transactions with identical transaction ids?
Jump to: