Skip to content

Comments

gossip: clarify what it means to 'discard a channel'#485

Merged
rustyrussell merged 1 commit intolightning:masterfrom
niftynei:use-consistent-term-for-channel-failure
Oct 18, 2018
Merged

gossip: clarify what it means to 'discard a channel'#485
rustyrussell merged 1 commit intolightning:masterfrom
niftynei:use-consistent-term-for-channel-failure

Conversation

@niftynei
Copy link
Collaborator

It's unclear what it means to discard a channel. Instead,
let's use the common phrase to fail a channel.

I'm assuming that fail is the same as discard here, but maybe it's meant to say discard the message? (But that seems unlikely, given the context).

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

This is in reference to channel_updates, not neccessarily our own channels. Failing would be appropriate if we were one of the sides of the channels, but as we are not, we cannot neccessarily "fail" the channel. You could clarify a bit further by saying something like "discard knowledge of the channel in its routing information".

@niftynei niftynei force-pushed the use-consistent-term-for-channel-failure branch from 5e904c0 to 83b8df1 Compare September 30, 2018 01:06
@niftynei
Copy link
Collaborator Author

niftynei commented Sep 30, 2018

Thanks for the clarification. I updated the commit to just add a bit of clarifying text.

As you mention, what to do if this is one of your immediate peers isn't immediately clear from the spec. The htlc_maximum_msat is provided mainly as a guideline for route-finding nodes -- should your channel peers care that you're advertising weird data?

@niftynei niftynei changed the title gossip: 'discard' -> 'fail' gossip: clarify what it means to 'discard a channel' Sep 30, 2018
- if `htlc_maximum_msat` is not present or greater than channel capacity:
- MAY blacklist this `node_id`
- SHOULD discard this channel.
- SHOULD discard this channel (from route considerations).
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about ignore instead of discard?

It's unclear what it means to `discard` a channel.
This add a clarification that it's related to route-finding.
@niftynei niftynei force-pushed the use-consistent-term-for-channel-failure branch from 83b8df1 to 9316176 Compare October 1, 2018 21:52
@niftynei
Copy link
Collaborator Author

niftynei commented Oct 1, 2018

Works for me. Updated.

@rustyrussell rustyrussell merged commit 80eed31 into lightning:master Oct 18, 2018
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.

4 participants