Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jrpc: response format for rpc_command hooks #14

Conversation

YusukeShimizu
Copy link
Contributor

@YusukeShimizu YusukeShimizu commented Jun 18, 2024

Fix json rpc response format according to
core lightning hook specification.
Previously, the format was nested in result,
but the format changes for hooks.

{"jsonrpc":"2.0","result":{"return":{"result":"xxx"}},"id":"aloha"}
{"jsonrpc":"2.0","id":"aloha","return":{"result":"xxx"}}

Fix json rpc response format according to
core lightning hook specification.
Previously, the format was nested in `result`,
but the format changes for hooks.

{"jsonrpc":"2.0","result":{"return":{"result":"xxx"}},"id":"aloha"}
{"jsonrpc":"2.0","id":"aloha","return":{"result":"xxx"}}
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.

1 participant