Skip to content

Conversation

@nepet
Copy link
Member

@nepet nepet commented Jul 17, 2025

This removes the direct implementation of RpcErrors and replaces it with a conversion trait for modularity. This PR also cleans up some boilerplate and naming conventions and adds a convenience macro to allow for easy error creation.

@nepet nepet requested a review from cdecker July 17, 2025 13:08
@cdecker
Copy link
Collaborator

cdecker commented Jul 18, 2025

ACK f4acccd

@cdecker cdecker enabled auto-merge (rebase) July 18, 2025 13:21
nepet added 5 commits July 18, 2025 15:21
We wan't to be able to use the error framework across diferent
greenlight crates. The util crate is a good place to store some common
functionalities.

Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
We add a trait that helps to implement conversions between cln_rpc
errors and the error codes provided by a module.
This also involved some cleanups, a convenience macro and some remaning

Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
We need to import it in the internal repo

Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
@cdecker cdecker force-pushed the 2524-538-improve-trampoline-errors branch from f4acccd to acf3009 Compare July 18, 2025 13:21
@cdecker cdecker merged commit 64785f8 into main Jul 18, 2025
11 checks passed
@cdecker cdecker deleted the 2524-538-improve-trampoline-errors branch July 18, 2025 13:33
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.

3 participants