You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ipc: default -ipcbind=unix socket is qbit-node.sock, but help and the test framework expect node.sock #292
-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.xb27130a7b9:
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