-
Notifications
You must be signed in to change notification settings - Fork 902
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
Fix deschash escaped json #6337
Fix deschash escaped json #6337
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay!
The C code LGTM :) for others, I trust your Makefile change because I do not know what the &
does.
The only thing that we are breaking with the PR is the protocol buffer compiler. I guess Ubuntu has an older version?
a2bdbf0
to
941dea8
Compare
Rebased on master, those commits are gone
941dea8
to
fe37dfc
Compare
…ashed descriptions. This means we need to push off requring this for another full deprecation cycle! Signed-off-by: Rusty Russell <[email protected]> Changelog-Fixed: JSON-RPC: `pay` and `decodepay` with description now correctly handle JSON escapes (e.g " inside description)
Since we didn't hash the descriptions properly (see previous commit), we cannot immediately deprecate omitting the descriptions (since you'd have to omit them for backwards compat!). And move the "must have description or hash" test into bolt11.c core. Changelog-Deprecated: `pay` has *undeprecated* paying a description-hash invoice without providing the description. Signed-off-by: Rusty Russell <[email protected]>
fe37dfc
to
927db5c
Compare
That silent SIGTERM failure is weird. Maybe we're running oom? Will debug tomorrow... |
It seems to reliably be getting a SIGTERM after 17-18 minutes: ``` [gw1] [ 91%] PASSED tests/test_plugin.py::test_forward_event_notification Error: Process completed with exit code 143. ``` Perhaps this is out of mem? So, try -n2. We also make the configure line explicit, rather than relying on environment vars (we should probably do this for the other cases, too) Signed-off-by: Rusty Russell <[email protected]>
Fixes: #6085
Notably, since our deschash comparison was broken, we cannot insist people provide a description, so back off on that deprecation.