Skip to content

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