[Consensus] Add constant for maximum stack size #10313

pull instagibbs wants to merge 1 commits into bitcoin:master from instagibbs:stackconst changing 2 files +4 −1
  1. instagibbs commented at 3:00 PM on May 2, 2017: member

    Currently only used once, but for an important constant like this it seems worthwhile.

  2. in src/script/script.h:33 in 9627e681e7 outdated
      29 | @@ -30,6 +30,9 @@ static const int MAX_PUBKEYS_PER_MULTISIG = 20;
      30 |  // Maximum script length in bytes
      31 |  static const int MAX_SCRIPT_SIZE = 10000;
      32 |  
      33 | +// Maximum size of the script interpreter stack
    


    ryanofsky commented at 3:24 PM on May 2, 2017:

    Maybe mention what the unit is.


    instagibbs commented at 5:22 PM on May 2, 2017:

    stack units? :)


    laanwj commented at 5:25 PM on May 2, 2017:

    "maximum number of values on script interpreter stack" maybe

  3. ryanofsky commented at 3:25 PM on May 2, 2017: member

    utACK 9627e681e793834b321dcecd155ef130d39b4e69

  4. laanwj added the label Refactoring on May 2, 2017
  5. Add constant for maximum stack size cb184b3a54
  6. instagibbs force-pushed on May 2, 2017
  7. instagibbs commented at 5:38 PM on May 2, 2017: member

    updated with nit

  8. practicalswift commented at 8:16 PM on May 2, 2017: contributor

    utACK cb184b3a544df7bcc7695ad3b54ed9d196c1650e

    Idea for another PR: Add test case triggering SCRIPT_ERR_STACK_SIZE

  9. dcousens approved
  10. ryanofsky commented at 1:35 PM on May 3, 2017: member

    utACK cb184b3a544df7bcc7695ad3b54ed9d196c1650e

  11. paveljanik commented at 8:47 AM on May 5, 2017: contributor

    ACK cb184b3

  12. ryanofsky commented at 4:43 PM on May 23, 2017: member

    This seems like it could be merged, has 3 acks.

  13. sipa commented at 4:45 PM on May 23, 2017: member

    utACK cb184b3a544df7bcc7695ad3b54ed9d196c1650e

  14. sipa merged this on May 23, 2017
  15. sipa closed this on May 23, 2017

  16. sipa referenced this in commit 4cb8757aae on May 23, 2017
  17. PastaPastaPasta referenced this in commit c93e4c305b on Jun 10, 2019
  18. PastaPastaPasta referenced this in commit 88f474232c on Jun 11, 2019
  19. PastaPastaPasta referenced this in commit eb0bc36398 on Jun 11, 2019
  20. PastaPastaPasta referenced this in commit 194844efc2 on Jun 15, 2019
  21. PastaPastaPasta referenced this in commit e0c01b4f2e on Jun 19, 2019
  22. PastaPastaPasta referenced this in commit 1739b2d610 on Jun 19, 2019
  23. PastaPastaPasta referenced this in commit 1c14adf4a1 on Jun 19, 2019
  24. PastaPastaPasta referenced this in commit 8488acf810 on Jun 19, 2019
  25. PastaPastaPasta referenced this in commit 01255122a6 on Jun 19, 2019
  26. PastaPastaPasta referenced this in commit 7062a72762 on Jun 20, 2019
  27. PastaPastaPasta referenced this in commit d10076a5d1 on Jun 22, 2019
  28. PastaPastaPasta referenced this in commit 8fc7addcab on Jun 22, 2019
  29. PastaPastaPasta referenced this in commit 17b3978d7c on Jun 22, 2019
  30. PastaPastaPasta referenced this in commit a456328b8c on Jun 22, 2019
  31. PastaPastaPasta referenced this in commit d206d41abe on Jun 22, 2019
  32. PastaPastaPasta referenced this in commit 1522230ec1 on Jun 24, 2019
  33. schancel referenced this in commit 74c90dd74f on Jul 5, 2019
  34. jonspock referenced this in commit 7ba8a62bda on Aug 28, 2019
  35. jonspock referenced this in commit 5975bd4d38 on Aug 28, 2019
  36. proteanx referenced this in commit 0b44255538 on Aug 28, 2019
  37. barrystyle referenced this in commit e471b28faa on Jan 22, 2020
  38. 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