-
Notifications
You must be signed in to change notification settings - Fork 491
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
bolt07: enforce htlc_maximum_msat >= htlc_minimum_msat #1089
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why we should ban an entire node for such a thing, like I could see a bug on this resulting in this happening, but we should just ignore the channel, not ban the node and all their channels, no? Did you come across this somewhere?
I think ignore is also fine. Was following the pattern from "if
No, just noticed it when I was checking up on some route blinding stuff. |
Yea, and arguably that also shouldn't result in us punishing a node entirely - we reject the gossip anyway, but at least that one is maybe harder to hit? |
Yeah fair point, bumped this one to should ignore during route construction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK d6b2177
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK d6b2177
Bolt 7 specifies how to set
hltc_minimum_msat
andhtlc_maximum_msat
but does not explicitly enforcehltc_minimum_msat
<=htlc_maximum_msat
.Since a channel where the largest HTLC that the advertising node will send through it is smaller than the minimum value the peer will accept is unusable, it seems reasonable to blacklist this type of gossip?