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

stop requiring channel and direction on sendonion since they're not used. #4537

Merged

Conversation

fiatjaf
Copy link
Contributor

@fiatjaf fiatjaf commented May 16, 2021

Does this make sense?

Untested, wanted to make sure it made sense first.

@cdecker cdecker self-requested a review May 24, 2021 10:53
@cdecker cdecker self-assigned this May 24, 2021
Copy link
Member

@cdecker cdecker left a comment

Choose a reason for hiding this comment

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

Changing just the requesting side breaks the receiving side. Please make the fields optional on the receiving side before removing them here.

@rustyrussell
Copy link
Contributor

Changing just the requesting side breaks the receiving side. Please make the fields optional on the receiving side before removing them here.

This is wrong: patch doesn't quite do what the title says.

It actually does two things:

  1. Fix sendonion to handle missing 'channel' and 'direction' properly.
  2. Remove "channel" and "direction" from the call used by libplugin-pay.

We both saw the second one and thought JSON output fields were being removed. Too hasty!

@fiatjaf
Copy link
Contributor Author

fiatjaf commented May 31, 2021

I think the sea of red tests was due to a variable name typo I had. Now locally there is only one test failing which seems unrelated or I couldn't understand it. Pushing temporarily anyway while I don't manage to find that out.

@niftynei niftynei added this to the v0.10.1 milestone Jun 1, 2021
@cdecker
Copy link
Member

cdecker commented Jun 3, 2021

The problematic changes were in the other PR, sorry for holding up the progress here.

@rustyrussell rustyrussell merged commit 2895325 into ElementsProject:master Jun 4, 2021
@rustyrussell
Copy link
Contributor

I squashed this into one commit, and tacked on a Changelog-Changed line.

Thanks!

@fiatjaf fiatjaf deleted the unused-channel-sendonion branch June 4, 2021 01:55
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.

4 participants