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

pay: Do not attempt to filter routehints if we can't find ourselves #4581

Merged

Conversation

cdecker
Copy link
Member

@cdecker cdecker commented Jun 3, 2021

There are a couple of ways this can happen, but we shouldn't crash.

Fixed #4488
Fixes #4533

@rustyrussell
Copy link
Contributor

Looks like CI found a real bug?

There are a couple of ways this can happen, but we shouldn't crash.

Fixed ElementsProject#4488
Fixes ElementsProject#4533

Changelog-Fixed: pay: Fixed an issue when filtering routehints when we can't find ourselves in the local network view.
@cdecker cdecker force-pushed the fix-no-src-routehints-filter branch from c06527e to 94bd509 Compare June 4, 2021 08:36
@cdecker
Copy link
Member Author

cdecker commented Jun 4, 2021

Yep, forgot to remove the second declaration of src inside the while-loop. Removed, should work now.

@cdecker
Copy link
Member Author

cdecker commented Jun 4, 2021

Seems my first two commits (add plugin to hooks, and add status field to htlc_in) got squashed into one. I separated them now again, and it should also be easier to spot that hin->status is initialized to NULL in the two places we allocated them: in peer_htlcs upon receiving, and when loading from the DB. Sorry for the mixup.

@rustyrussell
Copy link
Contributor

I think CI failure is unrelated: have a fix...

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 94bd509

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.

Pay plugin crashes when trying to pay Breez invoice Regular lightning payment crashes lightning node
2 participants