bitcoin-tx: Use constant for n pubkeys check #14474

pull alecalve wants to merge 1 commits into bitcoin:master from alecalve:bitcoin_tx_use_constant changing 1 files +1 −1
  1. alecalve commented at 10:03 AM on October 13, 2018: contributor

    Use the constant for the maximum number of public keys in a multisig script defined in script/script.h instead of hardcoding it.

  2. bitcoin-tx: Use constant for n pubkeys check
    Use the constant for the maximum number of public keys in a multisig
    script defined in script/script.h instead of hardcoding it.
    1f01fe0257
  3. fanquake added the label Refactoring on Oct 13, 2018
  4. in src/bitcoin-tx.cpp:359 in 1f01fe0257
     355 | @@ -356,7 +356,7 @@ static void MutateTxAddOutMultiSig(CMutableTransaction& tx, const std::string& s
     356 |      if (vStrInputParts.size() < numkeys + 3)
     357 |          throw std::runtime_error("incorrect number of multisig pubkeys");
     358 |  
     359 | -    if (required < 1 || required > 20 || numkeys < 1 || numkeys > 20 || numkeys < required)
     360 | +    if (required < 1 || required > MAX_PUBKEYS_PER_MULTISIG || numkeys < 1 || numkeys > MAX_PUBKEYS_PER_MULTISIG || numkeys < required)
    


  5. fanquake commented at 11:54 AM on October 14, 2018: member

    utACK 1f01fe0

  6. sipa commented at 7:54 AM on October 17, 2018: member

    utACK 1f01fe0257b4883fc6c5893adfdcc2aa128edd71

  7. jgarzik commented at 12:49 PM on October 17, 2018: contributor

    tested ACK

  8. Sjors commented at 2:29 PM on October 17, 2018: member
  9. fanquake added this to the "Mergeable" column in a project

  10. sipa merged this on Oct 20, 2018
  11. sipa closed this on Oct 20, 2018

  12. sipa referenced this in commit dc1e54206d on Oct 20, 2018
  13. fanquake removed this from the "Mergeable" column in a project

  14. alecalve deleted the branch on Oct 20, 2018
  15. jasonbcox referenced this in commit 154c52dc3d on Dec 20, 2019
  16. jonspock referenced this in commit 35e0f34d3e on Oct 2, 2020
  17. jonspock referenced this in commit 38419a43a6 on Oct 5, 2020
  18. jonspock referenced this in commit b4ddaba374 on Oct 10, 2020
  19. PastaPastaPasta referenced this in commit 031b0213cc on Jun 27, 2021
  20. PastaPastaPasta referenced this in commit 61655c0051 on Jun 28, 2021
  21. PastaPastaPasta referenced this in commit 24b1bc3ca5 on Jun 29, 2021
  22. PastaPastaPasta referenced this in commit f33eec6f9f on Jul 1, 2021
  23. PastaPastaPasta referenced this in commit 98d99a04e3 on Jul 1, 2021
  24. PastaPastaPasta referenced this in commit 29e098d992 on Jul 1, 2021
  25. PastaPastaPasta referenced this in commit 2df5880bcb on Jul 3, 2021
  26. MarcoFalke 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 06:15 UTC

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