Skip to content

bitcoind shouldn't perform network activity if the option networkactive=0, e.g. [addrman] Selected IP:PORT from tried #34190

@GregTonoski

Description

@GregTonoski

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

There are many logs like the examples below despite networkactive=0:

  1. 2025-12-31T12:24:47Z [addrman] Selected 34.75.109.94:8333 from tried
  2. 2025-12-31T12:24:47Z [tor] Error connecting to Tor control socket
    2025-12-31T12:24:47Z [tor] Not connected to Tor control port 127.0.0.1:9051, retrying in 25.63 s
  3. 2025-12-31T12:28:43Z [net:error] Could not get best interface for default route: Element not found. (1168)
    2025-12-31T12:28:43Z [net] portmap: Could not determine IPv4 default gateway

Expected behaviour

There isn't any network activity and so no such logs.

Steps to reproduce

  1. Start bitcoind.exe -networkactive=0

Relevant log output

bitcoind_addrman_win.txt

How did you obtain Bitcoin Core

Pre-built binaries

What version of Bitcoin Core are you using?

v29

Operating system and version

Windows 11

Machine specifications

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions