sigp / lighthouse

Ethereum consensus client in Rust
https://lighthouse.sigmaprime.io/
Apache License 2.0
2.81k stars 694 forks source link

--execution-endpoint for a WebSocket URL? #5907

Open Jack-Works opened 2 weeks ago

Jack-Works commented 2 weeks ago

Description

Nethermind supports WebSocket and IPC as execution endpoints. https://docs.nethermind.io/interacting/json-rpc-server

Version

5.1.3

Present Behaviour

ERRO Error updating deposit contract cache error: Invalid endpoint state: RequestFailed("eth_chainId call failed HttpClient(url: ws://127.0.0.1:8551/, kind: builder, detail: URL scheme is not allowed)"), retry_millis: 60000, service: deposit_contract_rpc

Expected Behaviour

Support WebSocket and IPC endpoints

Steps to resolve

michaelsproul commented 2 weeks ago

This was implemented in this PR but never merged:

It got abandoned because it provided no performance improvement. We would consider merging an updated version of that PR that does improve performance.

I was also mucking around with IPC in this PR, but haven't got it working yet: