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

Fix deschash escaped json #6337

Merged

Conversation

rustyrussell
Copy link
Contributor

Fixes: #6085

Notably, since our deschash comparison was broken, we cannot insist people provide a description, so back off on that deprecation.

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a 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?

.github/scripts/setup.sh Outdated Show resolved Hide resolved
@rustyrussell rustyrussell modified the milestones: v23.08, v23.05.2 Jun 20, 2023
@rustyrussell rustyrussell dismissed vincenzopalazzo’s stale review June 20, 2023 10:41

Rebased on master, those commits are gone

@rustyrussell rustyrussell modified the milestones: v23.05.2, v23.08 Jun 21, 2023
…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]>
@rustyrussell
Copy link
Contributor Author

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]>
@rustyrussell rustyrussell merged commit 55d6eb6 into ElementsProject:master Jun 22, 2023
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.

paying to invoice with deschashonly=true not working
2 participants