core-lightning/cln-rpc
Erik De Smedt 000fceb215 Rust cln-rpc crate: Fix call_enum and call
I've broken the error-handling for `call` in a previous commit.
The key problem is that it failed to parse Json-RPC error's
that were returned by the server. It always returned a parse-
error instead.

To fix it I've adapted `call_raw_request`.
In the previous implementation local errors (e.g: Failing to find the
socket-file) where returned in a Result::Err. However, when the
rpc-server returned an error the data was encoded in the Result::Ok.

In this commit every error is returned as a `Result::Err` and
various methods and other calls have been edited to match this behavior.

I've also added additonal testing
2024-01-09 14:12:46 +01:00
..
examples cln-rpc: Remove wildcard import from model 2023-07-10 13:47:38 +09:30
src Rust cln-rpc crate: Fix call_enum and call 2024-01-09 14:12:46 +01:00
Cargo.toml cln_rpc: Split low- from high-level API calls. 2024-01-09 14:12:46 +01:00
Makefile cln-rpc: Update the Makefile to always rebuild each example when the example files themselves are changed 2023-10-30 18:24:23 +01:00
README.md doc: update c-lightning to Core Lightning almost everywhere. 2022-04-07 06:53:26 +09:30

cln-rpc: Talk to Core Lightning