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

Minor cleanups #4803

Merged
merged 6 commits into from
Sep 21, 2021
Merged

Minor cleanups #4803

merged 6 commits into from
Sep 21, 2021

Conversation

cdecker
Copy link
Member

@cdecker cdecker commented Sep 21, 2021

Had these laying around for some time, and finally bundled them up.

  • Using wrong enum for pay status
  • Simplify the state aggregation by using orthogonal enum values
  • Silently drop the -27 already in chain failure in bcli
  • Error message not matching the verification

Especially the silencing of -27 should finally stabilize the lnprototests, but I'd like to have either @niftynei or @Rusty check that it's actually ok to do.

We were checking against the wrong enum value, resulting in an
erroneous `pending` state as a final result.

Changelog-Fixed: pay: `pay` would sometimes misreport a final state of `pending` instead of `failed`
It was really different from the way we decide the overall state of a
`pay` command's output. Now we use a more similar state decision,
based on collecting all states and checking them at the end to
determine the outcome.
Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

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

Ack dd63899

@rustyrussell rustyrussell merged commit 5c38e5a into ElementsProject:master Sep 21, 2021
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