duplicate coinbase transactions are allowed, and there are 2 pairs of dups #612

issue dmgores opened this issue on November 7, 2011
  1. dmgores commented at 4:21 AM on November 7, 2011: none

    take a look at:

    block hashes: 0x00000000000271A2DC26E7667F8419F2E15416DC6955E5A6C6CDF3F2574DD08E 0x00000000000743F190A18C5577A3C2D2A1F610AE9601AC046A38084CCB7CD721 they have duplicate coinbase transactions: 0xE3BF3D07D4B0375638D5F1DB5255FE07BA2C4CB067CD81B84EE974B6585FB468 block height 91722, 91880, on 2010-11-14 08:37:28, 2010-11-15 00:36:19

    block hashes: 0x00000000000AF0AED4792B1ACEE3D966AF36CF5DEF14935DB8DE83D6F9306F2F 0x00000000000A4D0A398161FFC163C503763B1F4360639393E0E4C8E300E0CAEC they have duplicate coinbase transactions: 0xD5D27987D2A3DFC724E359870C6644B40E497BDC0589A033220FE15429D88599 block height 91812, 91842, on 2010-11-14 17:59:48, 2010-11-14 21:04:51

    The miner was using the same signature "0x0456720E1B00" on all 4 of these coinbase transactions. The public keys for those two pairs of duplicates were: "0x4104124B212F5416598A92CCEC88819105179DCB2550D571842601492718273FE 0F2179A9695096BFF94CD99DCCCDEA7CD9BD943BFCA8FEA649CAC963411979A33E9AC" and "0x41046896ECFC449CB8560594EB7F413F199DEB9B4E5D947A142E7DC7D2DE0B811 B8E204833EA2A2FD9D4C7B153A8CA7661D0A0B7FC981DF1F42F55D64B26B3DA1E9CAC"

    • Should we allow this guy to spend his duplicate transactions? This would make code and data structures more complex for eternity... when verifying transactions we'd have to get a list of transactions for each hash, instead of just a single transaction... and mark a non-spent one as newly spent.
    • Or should we make a rules like "no more duplicate transactions when height > 91880" and "only one of a set of existing duplicate transactions are spendable coinbase"? I like this. :) Come on, we totally should have rejected those duplicate transactions!
  2. dmgores commented at 4:33 AM on November 7, 2011: none

    FYI none of those transaction outputs have been spent yet.

  3. TheBlueMatt commented at 3:58 PM on November 7, 2011: member

    Its been long known that one can generate duplicate coinbase transactions. Currently, if a miner modifies their bitcoind to create duplicate coinbase transactions, they will be able to spend one of the two transactions and the remaining ones will be unspendable. I see no reason to make major rules modifications to help those who broke their own coins.

  4. dmgores commented at 4:01 PM on November 7, 2011: none

    OK, thanks!

  5. dmgores closed this on Nov 7, 2011

  6. TheBlueMatt commented at 5:25 PM on February 6, 2012: member

    Oops, yea you can MineA SpendA MineA SpendA, but not MineA MineA SpendA SpendA.

  7. JonasPertschy commented at 7:54 PM on May 5, 2016: none

    In sense of completeness: CVE-2012-1910

  8. ptschip referenced this in commit ee2a863a3f on May 30, 2017
  9. fjahr referenced this in commit 84a808598b on Jul 24, 2019
  10. elichai referenced this in commit 461acf5c6c on Aug 22, 2019
  11. sipa referenced this in commit 6b9cd1520b on Sep 24, 2019
  12. kallewoof referenced this in commit 63bc3e3f02 on Oct 4, 2019
  13. kallewoof referenced this in commit c866f52e2a on Oct 4, 2019
  14. sipa referenced this in commit 544c1f35e7 on Nov 6, 2019
  15. sipa referenced this in commit d5cd9db7a3 on Nov 19, 2019
  16. sipa referenced this in commit de659898b6 on Jan 21, 2020
  17. sipa referenced this in commit 36362dfb90 on Jan 23, 2020
  18. jnewbery referenced this in commit 85e7d06351 on Mar 17, 2020
  19. sipa referenced this in commit 4977ac14d3 on Mar 18, 2020
  20. sipa referenced this in commit 5bf7fb5baa on Mar 18, 2020
  21. sipa referenced this in commit fb2a05e468 on Mar 19, 2020
  22. sipa referenced this in commit 497fad6f09 on Mar 21, 2020
  23. sipa referenced this in commit eae016f117 on Mar 22, 2020
  24. sipa referenced this in commit 4e37a7c2cb on Mar 27, 2020
  25. jnewbery referenced this in commit 9696dea839 on Apr 16, 2020
  26. jnewbery referenced this in commit a541fd0e87 on Apr 19, 2020
  27. sipa referenced this in commit c308759ea5 on Apr 19, 2020
  28. sipa referenced this in commit 4eaec32f1c on May 2, 2020
  29. sipa referenced this in commit ef7117193c on May 22, 2020
  30. sipa referenced this in commit 67f232b5d8 on Jun 9, 2020
  31. stackman27 referenced this in commit 78cde6f8c7 on Jun 26, 2020
  32. KolbyML referenced this in commit bc86927231 on Sep 4, 2020
  33. rajarshimaitra referenced this in commit 4060092c09 on Aug 5, 2021
  34. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 09:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me