Rename OP_NOP2 to OP_CHECKLOCKTIMEVERIFY #7213

pull mb300sd wants to merge 1 commits into bitcoin:master from mb300sd:rename-opnop2 changing 11 files +61 −47
  1. mb300sd commented at 7:36 PM on December 14, 2015: contributor
  2. MarcoFalke commented at 9:39 PM on December 14, 2015: member

    Concept ACK

    Could you please squash those commits? Commits should be as small as possible but still atomic.

  3. mb300sd force-pushed on Dec 14, 2015
  4. petertodd commented at 10:02 PM on December 14, 2015: contributor

    It'd be a good idea to note that the name has changed in the release notes, as this has the (small) potential to break some code that depends on what decodescript returns; we probably won't release this until v0.13

  5. in qa/rpc-tests/test_framework/script.py:None in d19686d4fb outdated
     225 | @@ -226,7 +226,8 @@ def __new__(cls, n):
     226 |  
     227 |  # expansion
     228 |  OP_NOP1 = CScriptOp(0xb0)
     229 | -OP_NOP2 = CScriptOp(0xb1)
     230 | +OP_CHECKLOCKTIMEVERIFY = CScriptOp(0xb1)
     231 | +OP_NOP2 = OP_CHECKLOCKTIMEVERIFY
    


    luke-jr commented at 10:53 PM on December 14, 2015:

    I am not sure this "compatibility" should be retained. If someone is specifying OP_NOP2, they may actually be expecting OP_NOP2 behaviour. Better to error and let them explicitly change to OP_CHECKLOCKTIMEVERIFY.

  6. luke-jr commented at 10:55 PM on December 14, 2015: member

    @petertodd If they depend on OP_NOP2 being returned, they are likely to be more subtley broken by not updating this...

  7. dcousens commented at 11:25 PM on December 14, 2015: contributor

    Agreed with @luke-jr, the meaning has changed, a break would be the best-case result for anyone depending on this.

  8. mb300sd force-pushed on Dec 14, 2015
  9. mb300sd commented at 11:34 PM on December 14, 2015: contributor

    Updated with release note update and the compatibility define removed.

  10. mb300sd force-pushed on Dec 14, 2015
  11. dcousens commented at 2:02 AM on December 15, 2015: contributor

    concept/once-over utACK 0bf46e0

  12. mb300sd commented at 6:42 AM on December 15, 2015: contributor

    @paveljanik Only if the verbose option is specified, the json output contains an asm script field. Standard hex output is not.

  13. paveljanik commented at 6:54 AM on December 15, 2015: contributor

    @mb300sd Right. Thank you. Can you please add "(in verbose mode)"?

  14. Rename OP_NOP2 to OP_CHECKLOCKTIMEVERIFY. 37d271d7cc
  15. mb300sd force-pushed on Dec 15, 2015
  16. MarcoFalke commented at 4:46 PM on December 17, 2015: member

    utACK 37d271d

  17. petertodd commented at 4:44 PM on December 19, 2015: contributor

    @luke-jr That's a reasonable idea; let's remove OP_NOP2.

    Release notes look good, thanks!

  18. laanwj commented at 9:16 AM on December 22, 2015: member

    utACK (but the tests are sufficient here) 37d271d7cce44885f835292ffe99b54399b014d6

  19. maaku commented at 9:23 AM on December 22, 2015: contributor

    tested ACK

  20. laanwj added the label P2P on Dec 22, 2015
  21. laanwj added the label RPC on Dec 22, 2015
  22. laanwj removed the label P2P on Dec 22, 2015
  23. laanwj merged this on Dec 22, 2015
  24. laanwj closed this on Dec 22, 2015

  25. laanwj referenced this in commit 595f93977c on Dec 22, 2015
  26. luke-jr referenced this in commit 3fb66755c7 on Dec 28, 2015
  27. luke-jr referenced this in commit 8f6b971a58 on Dec 28, 2015
  28. luke-jr referenced this in commit 7c8e88142e on Jan 13, 2016
  29. luke-jr referenced this in commit 605de4a88a on Jan 13, 2016
  30. 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-13 15:15 UTC

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