nethermind
nethermind copied to clipboard
Connecting with CL via IPC
Feedback from user MarcTheMauler (discord):
Hello, I am currently running nethermind and prysm... on the same machine... windows OS. I have everything working well, connecting the beacon node to nethermind using HTTP. I have been trying to figure out how to get IPC working (so I don't have to deal with the JWT token, post merge).
This is what I have in my config file for nethermind:
}, "JsonRpc": { "Enabled": true, "Timeout": 20000, "Host": "127.0.0.1", "Port": 8545, "IpcUnixDomainSocketPath": "pipe/nethermind.ipc" },
A question on this... the nethermind documentation says "path to IPC".... I just made up that path... and when I run this, I can go in windows explorer to that path, and I find a file that is created called nethermind.ipc. Is this step correct? Or is there actually an IPC somewhere that I'm supposed to be pointing to? (I'm self-taught... I have no idea how IPC actually works).
So in my beacon-node, I'm running this command to connect: --http-web3provider=\localhost/pipe/nethermind.ipc
I get an error that says "Could not connect to execution endpoint. Error=Timed out waiting for pipe to become available. Could not dial execution node.
I have tried MANY different path syntax in the beacon node (change / and \ , putting full directory paths, etc). Its possible I haven't tried the right combination though? I reached out to the prysm team, and seems they are stumped on this. I'm sure Windows is part of the issue, but its what I'm comfortable with.
For reference, my directory structure is: D: drive Subfolder -> ethereum Subfolders -> consensus; execution Inside Execution is Nethermind.... so the official file path (windows format) to the IPC file I see created is D:\ethereum\execution\pipe\nethermind.ipc
Prysm is located in D:\ethereum\consensus\prysm, and that is the directory from which I am executing prysm commands (if that impacts the origin for it to establish file path to the IPC?)
Any advice? Or do I just need to forget IPC, and work on configuring a JWT token? If it helps, When I connect to nethermind using HTTP.... this is the command I run in prysm, and it works: --http-web3provider=http://localhost:8545/
Also... if it helps... from the prysm documentation:
I have successfully used IPC while using Geth... but I had a lot of other Windows compatibility issues with Geth, so I changed to nethermind, which is working much better with Windows.
JSON RPC works through IPC without problems but it seems nobody has tested the configuration EL+CL with IPC. It shouldn't be difficult to make it work. Maybe small code changes will be required.
@kamilchodola can you post your finding here about using IPC between CL and EL?
@OlegJakushkin maybe I'm wrong but I think you've also tried to run CL via IPC?
I have successfully used IPC while using Geth... but I had a lot of other Windows compatibility issues with Geth, so I changed to nethermind, which is working much better with Windows.