Skip to content

Prepare lightning-node-connect for v0.3.7-alpha#124

Open
ViktorT-11 wants to merge 2 commits intolightninglabs:masterfrom
ViktorT-11:2026-04-bump-litd-to-v0_16_1-alpha
Open

Prepare lightning-node-connect for v0.3.7-alpha#124
ViktorT-11 wants to merge 2 commits intolightninglabs:masterfrom
ViktorT-11:2026-04-bump-litd-to-v0_16_1-alpha

Conversation

@ViktorT-11
Copy link
Copy Markdown
Contributor

@ViktorT-11 ViktorT-11 commented Apr 2, 2026

This PR prepares lightning-node-connect for the v0.3.7-alpha release.

The PR bumps the litd dependencies in the wasm-client & mobile to match the dependencies of litd v0.16.1-alpha.

@jamaljsr, when you test this can you please specifically test passing litcli & loop commands over a session using the wasm-client? I'm having issues with that when testing locally, but I'm not sure if it's due to my local setup or if it's a specific issue introduced by this PR.

Bump the dependencies to match the latest litd v0.16.1-alpha release.
Bump the dependencies to match the latest litd v0.16.1-alpha release.
Copy link
Copy Markdown
Member

@jamaljsr jamaljsr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to run this locally using Terminal but ran into an issue. The wasm panics when calling litrpc.Status.SubServerStatus, so I'm unable to get past the pairing page. I also tried using make example-server in this repo and got the same error when calling that RPC.

Browser logs:

2026-04-02 08:20:31.666 [DBG] WASM: WASM client ready for connecting
2026-04-02 08:20:32.193 [DBG] MBOX: (client) Dialing...
2026-04-02 08:20:32.194 [DBG] MBOX: (client) New conn, read_stream=60f7f18dfa68f90a447eba6adac58a4d277b5132d5b7316dca5e2b2378649033eb3d8b4926188b18a06b4d83d823444233accb52f097eac0d92a5dacec3bbf76, write_stream=60f7f18dfa68f90a447eba6adac58a4d277b5132d5b7316dca5e2b2378649033eb3d8b4926188b18a06b4d83d823444233accb52f097eac0d92a5dacec3bbf77
2026-04-02 08:20:32.195 [DBG] MBOX: (client) Attempting to create send socket/stream
2026-04-02 08:20:32.219 [DBG] MBOX: (client) Connected to send socket/stream
2026-04-02 08:20:32.245 [DBG] MBOX: (client) Receive mailbox initialized
2026-04-02 08:20:32.251 [DBG] MBOX: Starting client handshake
2026-04-02 08:20:32.991 [DBG] MBOX: Kicking off client handshake with client_key=03997ba0e47836b51d6916bdb605ae1ec33e8f2b291ef52effe54d413f84d97b59
2026-04-02 08:20:33.001 [DBG] MBOX: Completed client handshake with with server_key=029aebd6ff3ecba09ef882521c54769a36ccc0b569dd54421629b7bc438fcde262
2026-04-02 08:20:33.010 [DBG] WASM: WASM client connected to RPC
2026-04-02 08:20:33.198 [INF] WASM: Calling 'lnrpc.Lightning.GetInfo' on RPC with request {}
2026-04-02 08:20:33.231 [INF] WASM: Calling 'litrpc.Status.SubServerStatus' on RPC with request {}
panic: not supported

goroutine 47 [running]:
google.golang.org/protobuf/internal/impl.Export.MessageStateOf({}, {0x42c860, 0x3a035c0})
	google.golang.org/protobuf@v1.36.11/internal/impl/pointer_reflect.go:198 +0x2
github.com/lightninglabs/lightning-terminal/litrpc.(*SubServerStatusReq).Reset(0x3a035c0)
	github.com/lightninglabs/lightning-terminal/litrpc@v1.0.5/lit-status.pb.go:33 +0x8
google.golang.org/protobuf/proto.Reset({0x96b5c0, 0x3a035c0})
	google.golang.org/protobuf@v1.36.11/proto/reset.go:18 +0x9
google.golang.org/protobuf/encoding/protojson.UnmarshalOptions.unmarshal({{}, 0x0, 0x0, 0x0, {0x0, 0x0}, 0x0}, {0x39bffc8, 0x2, 0x8}, ...)
	google.golang.org/protobuf@v1.36.11/encoding/protojson/decode.go:75 +0x2
google.golang.org/protobuf/encoding/protojson.UnmarshalOptions.Unmarshal(...)
	google.golang.org/protobuf@v1.36.11/encoding/protojson/decode.go:68
github.com/grpc-ecosystem/grpc-gateway/v2/runtime.decodeJSONPb(0x39c37c0, {{}, 0x0, 0x0, 0x0, {0x0, 0x0}, 0x0}, {0x42c860, 0x3a035c0})
	github.com/grpc-ecosystem/grpc-gateway/v2@v2.22.0/runtime/marshal_jsonpb.go:222 +0xd
github.com/grpc-ecosystem/grpc-gateway/v2/runtime.unmarshalJSONPb({0x39bffb0, 0x2, 0x8}, {{}, 0x0, 0x0, 0x0, {0x0, 0x0}, 0x0}, ...)
	github.com/grpc-ecosystem/grpc-gateway/v2@v2.22.0/runtime/marshal_jsonpb.go:207 +0xd
github.com/grpc-ecosystem/grpc-gateway/v2/runtime.(*JSONPb).Unmarshal(...)
	github.com/grpc-ecosystem/grpc-gateway/v2@v2.22.0/runtime/marshal_jsonpb.go:167
github.com/lightninglabs/lightning-terminal/litrpc.RegisterStatusJSONCallbacks.func1({0x988158, 0x2d69280}, 0x3107408, {0x39bff88, 0x2}, 0x3a03590)
	github.com/lightninglabs/lightning-terminal/litrpc@v1.0.5/status.pb.json.go:28 +0xb
main.(*wasmClient).InvokeRPC.func1()
	github.com/lightninglabs/lightning-node-connect/cmd/wasm-client/main.go:375 +0x13
created by main.(*wasmClient).InvokeRPC in goroutine 11
	github.com/lightninglabs/lightning-node-connect/cmd/wasm-client/main.go:361 +0xd
08:20:33.235 installHook.js:1 exit code: 2
overrideMethod @ installHook.js:1
exit @ _app-c326a93a41d544a1.js:2
runtime.wasmExit @ _app-c326a93a41d544a1.js:2
$func1290 @ lnc-pr-124.wasm:0x139215
$resume @ lnc-pr-124.wasm:0x18597b
08:20:33.236 _app-c326a93a41d544a1.js:2 Uncaught Error: Go program has already exited
    at t._resume (_app-c326a93a41d544a1.js:2:175646)
    at WebSocket.<anonymous> (_app-c326a93a41d544a1.js:2:175889)
t._resume @ _app-c326a93a41d544a1.js:2
(anonymous) @ _app-c326a93a41d544a1.js:2
08:20:33.236 _app-c326a93a41d544a1.js:2 Uncaught Error: Go program has already exited
    at t._resume (_app-c326a93a41d544a1.js:2:175646)
    at WebSocket.<anonymous> (_app-c326a93a41d544a1.js:2:175889)
t._resume @ _app-c326a93a41d544a1.js:2
(anonymous) @ _app-c326a93a41d544a1.js:2
08:20:33.236 _app-c326a93a41d544a1.js:2 Uncaught Error: Go program has already exited
    at t._resume (_app-c326a93a41d544a1.js:2:175646)
    at WebSocket.<anonymous> (_app-c326a93a41d544a1.js:2:175889)
t._resume @ _app-c326a93a41d544a1.js:2
(anonymous) @ _app-c326a93a41d544a1.js:2
08:20:33.236 _app-c326a93a41d544a1.js:2 Uncaught Error: Go program has already exited
    at t._resume (_app-c326a93a41d544a1.js:2:175646)
    at WebSocket.<anonymous> (_app-c326a93a41d544a1.js:2:175889)
t._resume @ _app-c326a93a41d544a1.js:2
(anonymous) @ _app-c326a93a41d544a1.js:2
08:20:34.219 _app-c326a93a41d544a1.js:2 Uncaught Error: Go program has already exited
    at t._resume (_app-c326a93a41d544a1.js:2:175646)
    at _app-c326a93a41d544a1.js:2:171780
t._resume @ _app-c326a93a41d544a1.js:2
(anonymous) @ _app-c326a93a41d544a1.js:2

@ViktorT-11 ViktorT-11 changed the title Prepare lightning-node-connect for v0.3.6-alpha Prepare lightning-node-connect for v0.3.7-alpha Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants