Merge bitcoin/bitcoin#26899: p2p: set -dnsseed and -listen false if maxconnections=0

fabb95e7bf doc: add release note for 26899 (brunoerg)
c84c5f6e89 p2p: set `-dnsseed` and `-listen` false if `maxconnections=0` (brunoerg)

Pull request description:

  If `maxconnections=0`, it means our possible connections are going to be manual (e.g via `addnode`). For this reason, we can skip DNS seeds and set `listen` false.

ACKs for top commit:
  achow101:
    ACK fabb95e7bf
  vasild:
    ACK fabb95e7bf
  1440000bytes:
    reACK fabb95e7bf

Tree-SHA512: 33919a784723a32450f39ee4f6de3e27cc7c7f4c6ab4b8ce673981d461df334197deaf43e3f882039fa1ac36b2fddc6c6ab4413512d6c393d4a6865302dd05e7
This commit is contained in:
Andrew Chow
2023-03-20 12:43:17 -04:00
2 changed files with 10 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
Updated settings
----------------
- Setting `-maxconnections=0` will now disable `-dnsseed`
and `-listen` (users may still set them to override).