lightninglabs / lightninglabs/lightning-node-connect
Expose the RPC litrpc.Proxy.GetInfo via LNC wasm
@jamaljsr is already working on this.
Since Sep 14, 2023.
- Dominant language
- Go
- Stars
- 85
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
In Terminal Web, we'd like to get able to get the version of `litd` that the WASM is connected to. This information is available via the `litrpc.Proxy.GetInfo`. Unfortunately, when I attempt to call this RPC using `make example-server`, no response is returned. The WASM doesn't even log that the method is called in the browser console.
I have tried to fix this by adding `litrpc.RegisterProxyJSONCallbacks` to [jsoncallbacks.go](https://github.com/lightninglabs/lightning-terminal/blob/v0.10.5-alpha/litclient/jsoncallbacks.go#L34) but this results in the error
```
rpc error: code = Unimplemented desc = unknown service /litrpc.Proxy/GetInfo
```
It looks like this sub-server is being blocked by `litd` in [rpc_proxy.go](https://github.com/lightninglabs/lightning-terminal/blob/v0.10.5-alpha/rpc_proxy.go#L351). I'm not sure what code need to change to unblock just this `GetInfo` RPC.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.