Skip to content

Fix XXXs that slipped into router and handle HTLCFailCHannelUpdates #220

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 2 commits into from
Oct 25, 2018

Conversation

TheBlueMatt
Copy link
Collaborator

I usually use XXXs to indicate TODOs pre-commit/merge, but things are kinda in a rush for 0.0.6...oh well.

if *is_permanent {
if let Some(chan) = network.channels.remove(short_channel_id) {
Self::remove_channel_in_nodes(&mut network.nodes, &chan, *short_channel_id);
}
Copy link
Contributor

@yuntai yuntai Oct 24, 2018

Choose a reason for hiding this comment

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

+ MAY TODO: if the announced node no longer has any associated open channels:
+ MAY prune nodes added through node_announcement messages from their local view.
?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

remove_channel_in_nodes removes the node if there are no channels left.

@TheBlueMatt
Copy link
Collaborator Author

Gonna merge this to get travis working again. Its obviously not complete and adds some TODOs, but thats ok.

@TheBlueMatt TheBlueMatt merged commit f5ff5d1 into lightningdevkit:master Oct 25, 2018
@jkczyz jkczyz mentioned this pull request Jan 31, 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.

2 participants