Explicitly set tx.nVersion for the genesis block and mining tests #6222

pull maaku wants to merge 1 commits into bitcoin:master from maaku:explicit-tx-version changing 2 files +2 −0
  1. maaku commented at 11:40 PM on June 2, 2015: contributor

    If/when CTransaction::CURRENT_VERSION is incremented, this will break CChainParams and the miner tests. This fix sets the transaction version explicitly where we depend on the hash value (genesis block, proof of work checks).

  2. Explicitly set tx.nVersion for the genesis block and mining tests
    If/when CTransaction::CURRENT_VERSION is incremented, this will break CChainParams and the miner tests. This fix sets the transaction version explicitly where we depend on the hash value (genesis block, proof of work checks).
    efd44440d8
  3. luke-jr commented at 1:43 AM on June 3, 2015: member

    utACK

  4. maaku commented at 1:49 AM on June 3, 2015: contributor

    Btw, note for future reference that actually changing CURRENT_VERSION breaks some of the hex test data, but that's not easy to future proof now.

  5. laanwj added the label Tests on Jun 3, 2015
  6. jgarzik commented at 2:36 AM on June 7, 2015: contributor

    ut ACK

  7. petertodd commented at 4:59 AM on June 7, 2015: contributor

    utACK

  8. laanwj merged this on Jun 10, 2015
  9. laanwj closed this on Jun 10, 2015

  10. laanwj referenced this in commit 9c93ee5ceb on Jun 10, 2015
  11. dagurval cross-referenced this on Mar 14, 2017 from issue Chainparams backports by dagurval
  12. str4d cross-referenced this on Mar 28, 2017 from issue Bitcoin 0.12 chainparams cleanups by str4d
  13. zkbot referenced this in commit e1c68f0631 on Jan 19, 2018
  14. zkbot referenced this in commit 4f77ce5cb1 on Jan 22, 2018
  15. zkbot referenced this in commit cc571a3ccd on Jan 22, 2018
  16. zkbot referenced this in commit 50c23880c7 on Jan 22, 2018
  17. zkbot referenced this in commit a4a020de7b on Jan 22, 2018
  18. bitcoin 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-05-20 06:55 UTC