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

pyln: actually specify jsonrpc in requests #3442

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

darosior
Copy link
Collaborator

@darosior darosior commented Jan 27, 2020

We were not specifying the jsonrpc field in JSONRPC request produced by pyln. Uncovered this while refactoring libplugin, it made plugins crash (during functional tests, but not by-hand tests!) if we check for its presence.

Copy link
Collaborator

@ZmnSCPxj ZmnSCPxj left a comment

Choose a reason for hiding this comment

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

As per the spec (https://www.jsonrpc.org/specification#request_object)

```
A rpc call is represented by sending a Request object to a Server. The Request object has the following members:

jsonrpc
    A String specifying the version of the JSON-RPC protocol. MUST be exactly "2.0".
```

Changelog-fixed: pyln now includes the "jsonrpc" field to jsonrpc2 requests
@darosior
Copy link
Collaborator Author

Amended the commit, forgot the Changelog..

@cdecker
Copy link
Member

cdecker commented Jan 27, 2020

Doh, my fault 🤦‍♂️

ACK 5b65174

@cdecker cdecker merged commit b7699cf into ElementsProject:master Jan 27, 2020
@darosior darosior deleted the fix_pyln branch January 27, 2020 11:40
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