Skip to content

Return the correct channel_update when erring#4876

Merged
cdecker merged 2 commits intoElementsProject:masterfrom
cdecker:chan-update-error
Oct 21, 2021
Merged

Return the correct channel_update when erring#4876
cdecker merged 2 commits intoElementsProject:masterfrom
cdecker:chan-update-error

Conversation

@cdecker
Copy link
Member

@cdecker cdecker commented Oct 21, 2021

This is a spinoff from #4808 which includes the fix for outdated channel_updates when one is already queued for broadcast.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
We can have an update pending because it's too fast, but
refresh_local_channel is supposed to make sure we're up-to-date, so
force immediate application in that case.

Otherwise, we call update_local_channel at the bottom which frees the
pending update.  This can mean that we miss a change in fees, for example.

Changelog-Fixed: errors: Errors returning a `channel_update` no longer return an outdated one.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@cdecker cdecker added this to the v0.10.2 milestone Oct 21, 2021
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

ack 18d18de

@cdecker cdecker merged commit 9c254c8 into ElementsProject:master Oct 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.

3 participants