diff --git a/docs/providers.rst b/docs/providers.rst index 59cf2e1bb3..b560aa51d1 100644 --- a/docs/providers.rst +++ b/docs/providers.rst @@ -168,23 +168,12 @@ IPCProvider >>> from web3 import Web3 >>> w3 = Web3(Web3.IPCProvider("~/Library/Ethereum/geth.ipc")) - If no ``ipc_path`` is specified, it will use the first IPC file - it can find from this list: + If no ``ipc_path`` is specified, it will use a default depending on your operating + system. - - On Linux and FreeBSD: - - - ``~/.ethereum/geth.ipc`` - - ``~/.local/share/io.parity.ethereum/jsonrpc.ipc`` - - ``~/.local/share/trinity/mainnet/ipcs-eth1/jsonrpc.ipc`` - - On Mac OS: - - - ``~/Library/Ethereum/geth.ipc`` - - ``~/Library/Application Support/io.parity.ethereum/jsonrpc.ipc`` - - ``~/.local/share/trinity/mainnet/ipcs-eth1/jsonrpc.ipc`` - - On Windows: - - - ``\\\.\pipe\geth.ipc`` - - ``\\\.\pipe\jsonrpc.ipc`` + - On Linux and FreeBSD: ``~/.ethereum/geth.ipc`` + - On Mac OS: ``~/Library/Ethereum/geth.ipc`` + - On Windows: ``\\\.\pipe\geth.ipc`` WebsocketProvider diff --git a/newsfragments/2971.docs.rst b/newsfragments/2971.docs.rst new file mode 100644 index 0000000000..ee0536908f --- /dev/null +++ b/newsfragments/2971.docs.rst @@ -0,0 +1 @@ +Removed references to defunct providers in `IPCProvider` docs diff --git a/web3/providers/ipc.py b/web3/providers/ipc.py index ae749b355c..170499a8bc 100644 --- a/web3/providers/ipc.py +++ b/web3/providers/ipc.py @@ -139,10 +139,6 @@ def get_dev_ipc_path() -> Optional[str]: if os.path.exists(ipc_path): return ipc_path - ipc_path = os.path.join("\\\\", ".", "pipe", "jsonrpc.ipc") - if os.path.exists(ipc_path): - return ipc_path - else: raise ValueError( f"Unsupported platform '{sys.platform}'. Only darwin/linux/win32/"