test: Check an invalid -i2psam will raise an init error #24687

pull brunoerg wants to merge 1 commits into bitcoin:master from brunoerg:2022-03-add-invalid-proxy-test changing 1 files +6 −0
  1. brunoerg commented at 10:08 PM on March 26, 2022: member

    This PR adds test coverage (at feature_proxy.py) for the following init error:

    https://github.com/bitcoin/bitcoin/blob/2f0f056e08cd5a1435120592a9ecd212fcdb915b/src/init.cpp#L1791

    It starts the node with an invalid -i2psam (-i2psam=invalidhere) and test if it raises an error when initializing.

  2. brunoerg closed this on Mar 26, 2022

  3. ClaraBara22 commented at 10:36 PM on March 26, 2022: none

    Looks good to me, thanks

  4. brunoerg renamed this:
    test: Check an invalid proxy will raise an init error
    test: Check an invalid -i2psam will raise an init error
    on Mar 27, 2022
  5. test: invalid -i2psam will raise an init error 45e67b2695
  6. brunoerg reopened this on Mar 27, 2022

  7. brunoerg force-pushed on Mar 27, 2022
  8. DrahtBot added the label Tests on Mar 27, 2022
  9. dunxen approved
  10. dunxen commented at 5:27 PM on March 27, 2022: contributor

    Code review ACK 45e67b2

    Tested locally. Test passes with invalid -i2psam value and fails (hangs) as with onion and proxy with valid values.

    <details> <summary>PGP Signature</summary>

    
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512
    
    Code review ACK 45e67b2
    
    Tested locally. Test passes with invalid `-i2psam` value and fails (hangs) as with onion and proxy with valid values.
    -----BEGIN PGP SIGNATURE-----
    
    iQIzBAEBCgAdFiEEKPWQCxu10aS2ttGp7TVwFShqMz0FAmJAnOYACgkQ7TVwFShq
    Mz0z9g/9E2v2pao2/X2cyk6BkZwuFuuH0O5Pbt2votwGJZ17UbE5jbw4Pvk2HsNB
    zo8Lp6/XBXYQX9Z6xoRI3oCS/oPFrhKwLlKGwDx71PAkt5URChyli0Q5G/yzZmKX
    nAtQoO+kmCaa/wWsc9aspgW9u8jC7O7kWZ201gwZyIlyHDWQlKuLeMqMLBAT6IQ8
    8tfXGNg7LAJph0caQ9aCGgwXHikg43Cjh3jpcl9tVcvlGAbrlPs2EBXk8LGPdsRC
    SSU0OMUj8Zqrlnqj42unywi2U3r7pQd6sQ7gEaqWQrLsCh/jzOq3tXFzw7ryRuFk
    17+ULDOhaUXPLb6zE/YYZI+6XWjuAY2CYZKph0y6mbrcEIwXz4yxX+4eAsbkEHG1
    duyzEfnLMw+/8v4ordvyGM39a4gbctF6GaIqh6zUzAQSOBeXYwGhhChcXWstfjVv
    7dHlkixJz1v3sc5drIh3Ffbn77RhZrpEmaz2c4HeyeI4HwGXvgTtoK1/anK6GHRG
    BCqh3beUUHxy+5qVzva1JyfuVpdzbsbGJIhlr9XTDwx0WELg46GPBYSBS5BbDLSb
    WhNlWIB0qVLtKBFZo4nasHYksmX7wtZmrlRyHqugSiBEhx2x1v3SOyrxT+qaC7cU
    ED60H+6YXKeVoviIJLuLjqq7sSMxhHKapQJcUZaViQ18qhpug9c=
    =rVAT
    -----END PGP SIGNATURE-----
    
    

    </details>

  11. MarcoFalke merged this on Mar 28, 2022
  12. MarcoFalke closed this on Mar 28, 2022

  13. jonatack commented at 9:20 AM on March 28, 2022: member

    Post-merge ACK

  14. sidhujag referenced this in commit 69b037afdf on Apr 3, 2022
  15. luke-jr referenced this in commit 2fe908f78a on May 21, 2022
  16. DrahtBot locked this on Mar 28, 2023

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-02 03:13 UTC

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