test: minor cleanups in feature_cltv.py #22113

pull theStack wants to merge 3 commits into bitcoin:master from theStack:202105-test-feature_cltv_improvements changing 1 files +11 −12
  1. theStack commented at 6:02 PM on May 31, 2021: member

    This tiny PR cleans up the test feature_cltv.py in the following ways:

    • fixes a typo (s/ctlv/cltv/); compared to CHECKLOCKTIMEVERIFY, CHECKTIMELOCKVERIFY probably also sounds good and you even get some search results for it, but it's still wrong ;)
    • drops the unused "node" parameters from the tx modification functions
    • don't return a copy from the tx modification functions; it's modified in-place, hence a copy is not needed and cltv_validate(tx, ...) looks more natural than tx = cltv_validate(tx, ...)
  2. test: fix typo in feature_cltv.py (s/ctlv/cltv/) 0c2139a3f1
  3. test: drop unused node parameters in feature_cltv.py
    The following functions had a parameter "node" that is unsused
    and hence can be removed:
        - cltv_modify_tx()
        - cltv_invalidate()
        - cltv_validate()
    9ab2ce0a66
  4. test: feature_cltv.py: don't return tx copies in modification functions
    The functions cltv_modify_tx(), cltv_invalidate() and cltv_validate()
    all modify the passed transaction in-place, i.e. there is no need
    to return a copy.
    7e32fde912
  5. DrahtBot added the label Tests on May 31, 2021
  6. practicalswift commented at 8:03 PM on May 31, 2021: contributor

    Concept ACK

  7. MarcoFalke commented at 12:55 PM on June 1, 2021: member

    review ACK 7e32fde912b3924fdb27ec1f658ac11fcf160b3e 📼

    <details><summary>Show signature and timestamp</summary>

    Signature:

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512
    
    review ACK 7e32fde912b3924fdb27ec1f658ac11fcf160b3e 📼
    -----BEGIN PGP SIGNATURE-----
    
    iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
    pUi60Av7BoU5GAyP8gj4Tf/jaaf7VFkSDOSajnYe+CrcHuq2w/R7FBpe4SsGR++P
    AGF87LCfvL+zcNDBb0ZIrYipoHMbyqUKKX/fUewaO/YqmhLZuJiM52Bf07/1BhCT
    666gHUUm8EHe1E6ybP/wLaZFpoWGxy/CLpHN2r2HILH0NPEWqnTB+6poQVtCxh4i
    MqLuhLT+1Td1DjyEFU48Wqbl34ace8I+wEkT7wNpmCdFFsH7Tc0IQQFwJCA6AexH
    cKPGaWtV2vjYcfH7l9jprVcEfpIJRXQgUI9OxSgss0S5Dzfy7v1YjpKQXl0JzA5i
    GWqu1nxtIygBHXR2HKsFa91cohycDfb9nnlZ5BdJKElgrf7ix/MjnCuj3yhJDXpG
    LAaFsn2pZw+vglie9FzGj1JdmCt6usPov/+l5GEfJGsBT8NihGviqMxJTjCR0Nsg
    vLt43k8Ubd4m5eLZ3IHmNrjfvDfWZisXXc4oQs8lKijBtdOvtQ/VKhWUbuLba51S
    KaLMwUV8
    =xlG2
    -----END PGP SIGNATURE-----
    

    Timestamp of file with hash 98e83c4cf9aaeb597bf84f82786633d4317aff4172cbde3ca56086aff9cd8904 -

    </details>

  8. MarcoFalke merged this on Jun 1, 2021
  9. MarcoFalke closed this on Jun 1, 2021

  10. sidhujag referenced this in commit 5b5e2527f1 on Jun 1, 2021
  11. theStack deleted the branch on Jul 31, 2021
  12. gwillen referenced this in commit ef32d80f95 on Jun 1, 2022
  13. DrahtBot locked this on Aug 16, 2022

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-14 21:14 UTC

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