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

plugin: Pass the full raw_payload including realm to htlc_accepted #3261

Merged
merged 1 commit into from
Nov 18, 2019

Conversation

cdecker
Copy link
Member

@cdecker cdecker commented Nov 14, 2019

So far we've only handled legacy payloads, which meant we could drop the realm
byte since it was always 0x00. Once we start handling TLV payloads the first
byte, i.e., the former realm byte, is important since it gives us the length
of the payload. This is a breaking change, however I don't think there's
anyone using the raw_payload as of yet.

Changelog-Changed: JSON-RPC: the raw_payload now includes the first byte, i.e., the realm byte, of the payload as well. This allows correct decoding of a TLV payload in the plugins.

@rustyrussell
Copy link
Contributor

Ack, but needs test fixup too?

So far we've only handled legacy payloads, which meant we could drop the realm
byte since it was always 0x00. Once we start handling TLV payloads the first
byte, i.e., the former realm byte, is important since it gives us the length
of the payload. This is a breaking change, however I don't think there's
anyone using the `raw_payload` as of yet.

Changelog-Changed: JSON-RPC: the `raw_payload` now includes the first byte, i.e., the realm byte, of the payload as well. This allows correct decoding of a TLV payload in the plugins.
@cdecker cdecker force-pushed the htlc-accept-full-payload branch from e2adf44 to b96b537 Compare November 16, 2019 15:13
@cdecker
Copy link
Member Author

cdecker commented Nov 16, 2019

Tests fixed ^^

@cdecker
Copy link
Member Author

cdecker commented Nov 18, 2019

Re-applying Rusty's ACK

ACK b96b537

@cdecker cdecker merged commit dda792c into ElementsProject:master Nov 18, 2019
cdecker added a commit to cdecker/lightning that referenced this pull request Nov 21, 2019
I missed this test breaking with `EXPERIMENTAL_FEATURES` in ElementsProject#3261
cdecker added a commit to cdecker/lightning that referenced this pull request Nov 21, 2019
I missed this test breaking with `EXPERIMENTAL_FEATURES` in ElementsProject#3261
rustyrussell pushed a commit that referenced this pull request Nov 22, 2019
I missed this test breaking with `EXPERIMENTAL_FEATURES` in #3261
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.

2 participants