Feature request: Separate MAX_OUTBOUND_CONNECTIONS for each IPv4 and IPv6 #7449

issue anto opened this issue on February 1, 2016
  1. anto commented at 3:05 AM on February 1, 2016: none

    The current implementation limits the maximum outbound connection to only 8 connections, i.e. MAX_OUTBOUND_CONNECTIONS = 8, regardless how many IP addresses that a node has. A part from obsolete implementation, i.e. based on only IPv4 network, I think the intention is possibly also to avoid bad nodes with multiple IP addresses flooding the network. But regardless to that, at least the limitation should be changed per IP address types, so that each IPv4 and IPv6 addresses individually get maximum 8 outbound connections as they are clearly on separate networks.

  2. jonasschnelli added the label Feature on Feb 1, 2016
  3. jonasschnelli added the label P2P on Feb 1, 2016
  4. subSTRATA commented at 5:41 PM on March 6, 2016: none

    Or at least make it possible to externaly (bitcoin.conf or command line) specify maximum number of outgoing connections. Gavin said that nodes which does not accept incoming connections are not solution but a problem but I just partialy agree, on countless occassions my node connected to some other nodes and those other nodes started syncing with it. So node that can accept incoming connections synced from my node which can't accept incoming connections, which one was more useful? If I could specify maxoutgoingconnections=64 or 256 that means my node would have a higher chance to sync up other nodes, detect forks and not fall victim to Sybil attack.

  5. MarcoFalke commented at 8:59 PM on April 26, 2020: member

    The feature request didn't seem to attract much attention in the past. Also, the issue seems not important enough right now to keep it sitting around idle in the list of open issues.

    Closing due to lack of interest. Pull requests with improvements are always welcome.

  6. MarcoFalke closed this on Apr 26, 2020

  7. DrahtBot locked this on Feb 15, 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-05-02 12:15 UTC

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