Skip to content

ipc: default -ipcbind=unix socket is qbit-node.sock, but help and the test framework expect node.sock #292

Open

Description

@kiwidream

Summary

-ipcbind=unix listens on <datadir>/qbit-node.sock, but the option's help and the functional test framework both expect <datadir>/node.sock.

Observed

At 1.x.x b27130a7b9:

  • src/ipc/process.cpp:80 builds the default path as RemovePrefixView(dest_exe_name, "bitcoin-") + ".sock". The executable is qbit-node, so nothing is stripped and the socket is qbit-node.sock.
  • The -ipcbind help (src/init.cpp:706) and test/functional/test_framework/test_node.py:159 both use node.sock.

interface_ipc.py therefore fails with FileNotFoundError in its echo test whenever the test datadir path is short enough (under 108 bytes) for the framework to use the default socket. With longer paths the framework passes an explicit unix:<path>, which hides the problem. That is likely why CI passes. Found while reviewing the #278 backport.

Suggested fix

Strip qbit- as well (or instead), so the default matches the help and the framework, and add a test that uses the default path.

Activity

  1. added
    bug
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions