Skip to content

Avoid internet traffic from tests #31339

@vasild

Description

@vasild

Current behaviour

Tests should not try to open connections to the internet because:

  • they may succeed or fail unpredictably, depending on external environment
  • are slow
  • dox the developer to their ISP that they are running Bitcoin Core tests

Expected behaviour

Tests should only open local connections (e.g. on the lo interface).

Enforce this in the CI, having it to detect non-local traffic and fail accordingly.

Steps to reproduce

Run the functional tests and monitor the traffic.

Relevant log output

No response

How did you obtain Bitcoin Core

Compiled from source

What version of Bitcoin Core are you using?

master@22ef95dbe3e467039e6cd18988e66557d94041d1

Operating system and version

Ubuntu 28.04 LTS


This is being fixed in two parts:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions