i2pacceptincoming isn't set default to 0 #22983

issue clayop opened this issue on September 15, 2021
  1. clayop commented at 3:33 PM on September 15, 2021: none

    On Windows, if I put i2psam=localhost:7656 and i2pacceptincoming in bitcoin.conf Bitcoin core should run without errors.

    But i2pacceptincoming leads to an error. I have to put i2pacceptincoming=1

    As documented, default value of i2pacceptincoming should set to 1 so that i2pacceptincoming works alone.

  2. clayop added the label Bug on Sep 15, 2021
  3. ghost commented at 4:16 PM on September 15, 2021: none

    On Windows, if I put i2psam=localhost:7656 and i2pacceptincoming in bitcoin.conf Bitcoin core should run without errors.

    You should use nothing or i2pacceptincoming=N where N=0 to disable and N=1 to enable

    As documented, default value of i2pacceptincoming should set to 1 so that i2pacceptincoming works alone.

    It is set to 1 by default if you don't use that option in config.

    Try running with these config:

    1. Check default behaviour
    i2psam=127.0.0.1:7656
    
    1. Disable i2p incoming and only use i2p for outgoing
    i2psam=127.0.0.1:7656
    i2pacceptincoming=0
    

    Also the documentation is correct in doc/i2p.md, maybe there is some misunderstanding.

    https://github.com/bitcoin/bitcoin/blob/053a5fc7d912d597cd6dc7376b479420d1eae1c0/src/init.cpp#L439

  4. fanquake commented at 4:16 PM on August 8, 2022: member

    cc @vasild

  5. fanquake added the label P2P on Aug 11, 2022
  6. vasild commented at 4:30 PM on August 12, 2022: contributor

    @clayop, If you put i2pacceptincoming in bitcoin.conf, you need to put either i2pacceptincoming=1 or i2pacceptincoming=0. Without =N this error is produced:

    ./src/bitcoind 
    Error: Error reading configuration file: parse error on line 35: i2pacceptincoming
    

    That is the same for other options as well, e.g. logips or listen:

    ./src/bitcoind 
    Error: Error reading configuration file: parse error on line 20: listen
    
  7. mzumsande commented at 5:32 PM on September 20, 2022: contributor

    Seems like there is nothing wrong here (and nothing specific to i2pacceptincoming, all boolean command args work that way), so that this could be closed?

  8. vasild commented at 9:15 AM on November 23, 2022: contributor

    I guess this should be closed as "not a bug".

  9. maflcko closed this on Nov 23, 2022

  10. bitcoin locked this on Nov 23, 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 12:14 UTC

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