Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
501self.log.info("Test passing too-long unix path to -proxy raises init error")502self.nodes[1].extra_args = [f"-proxy=unix:{'x' * 1000}"]503if self.have_unix_sockets:504msg = f"Error: Invalid -proxy address or hostname: 'unix:{'x' * 1000}'"505else:506# If unix sockets are not supported, the file path is incorrectly interpreted as host:port507msg = f"Error: Invalid port specified in -proxy: 'unix:{'x' * 1000}'"508self.nodes[1].assert_start_raises_init_error(expected_msg=msg)510# Cleanup socket path we established outside the individual test directory.511if self.have_unix_sockets:512os.unlink(socket_path)514if __name__ == '__main__':515ProxyTest(__file__).main()
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.