Skip to content

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

Merged
cdecker merged 1 commit into
ElementsProject:masterfrom
rustyrussell:update-report-fix
Jul 27, 2020
Merged

pay: always send onion error message to gossipd.#3879
cdecker merged 1 commit into
ElementsProject:masterfrom
rustyrussell:update-report-fix

Conversation

@rustyrussell
Copy link
Copy Markdown
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 <rusty@rustcorp.com.au>
@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
Copy Markdown
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

Comment thread gossipd/routing.c
return hops;
}

void routing_failure(struct routing_state *rstate,
Copy link
Copy Markdown
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
Copy Markdown
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