Skip to content

pay: always send onion error message to gossipd. #3879

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

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

rustyrussell
Copy link
Contributor

@rustyrussell rustyrussell commented Jul 26, 2020

There were no channel updates in my log; because sendonion doesn't know the
actual node_ids or channel_ids, we can't tell gossipd what node/channel it was
so it can no longer remove them on PERM errors.

However, we can tell it the error message so it can apply the update.

Fixes: #3877
Changelog-None

There were no channel updates in my log; because sendonion doesn't know the
actual node_ids or channel_ids, we can't tell gossipd what node/channel it was
so it can no longer remove them on PERM errors.

However, we can tell it the error message so it can apply the update.

Fixes: ElementsProject#3877
Signed-off-by: Rusty Russell <[email protected]>
@rustyrussell rustyrussell added this to the v0.9.0 milestone Jul 26, 2020
@rustyrussell rustyrussell requested a review from cdecker July 26, 2020 01:04
Copy link
Contributor

@ZmnSCPxj ZmnSCPxj left a comment

Choose a reason for hiding this comment

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

ACK 5e67173

@@ -2762,96 +2762,6 @@ struct route_hop **get_route(const tal_t *ctx, struct routing_state *rstate,
return hops;
}

void routing_failure(struct routing_state *rstate,
Copy link
Contributor

Choose a reason for hiding this comment

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

Well that is a lot of code removed. I suppose these are just holdovers of the old days when pay was far less sophisticated.

@cdecker
Copy link
Member

cdecker commented Jul 26, 2020

Thanks @rustyrussell, this looks great. I'm surprised that the old sendpay path doesn't touch these removes parts anymore.

@cdecker cdecker merged commit b4aff49 into ElementsProject:master Jul 27, 2020
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.

rc3 insufficient fee in pay?
3 participants