-
Notifications
You must be signed in to change notification settings - Fork 267
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
Add a new min-funding config parameter for private channels #2203
Conversation
My rational for the I'm not completely happy with the |
Codecov Report
@@ Coverage Diff @@
## master #2203 +/- ##
==========================================
- Coverage 83.89% 83.88% -0.02%
==========================================
Files 186 186
Lines 13937 13940 +3
Branches 545 580 +35
==========================================
Hits 11693 11693
- Misses 2244 2247 +3
|
I understand your rationale for |
@thomash-acinq beat me to it, indeed it's the way to go:
|
I agree. As long as we mention both new options in the deprecation message that should ensure they know to set both the public and private min funding values. |
min-public-funding-satoshis = 100000 // high public minimums are attractive to pathfinding heuristics | ||
min-private-funding-satoshis = 100000 // safe private minimums increase the cost of spamming and flood-and-loot attacks |
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 think these comments are really helpful. Larger channels are more attractive but that doesn't have anything to do with the minimum we set here, a small channel is more attractive than no channel.
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.
Removed them in 6534977. Sounds like its too nuanced to explain in comments.
I've just remembered about the release notes, can you update them too? |
Also, for PR names and squashed commit messages please use a short sentence starting by a verb with an uppercase. |
Add the ability to set a different min-funding limit for private and public channels. See issue "Private channels should have their own dedicated 'min-funding-satoshis' setting" #2077.
If
channel.private.enable-alt
=true
then thechannel.private.min-funding-satoshis
value will be used for private channels, otherwise thechannel.min-funding-satoshis
will be used for both public and private channels.A few questions:
min-funding-satoshis
tests comparedassert(error.toAscii === Error(...).toAscii)
while other tests inWaitForOpenChannelStateSpec
left off the.toAscii
. Is there a reason to use the.toAscii
in the assert here?min-funding-satoshis
. Should I add documentation to that effect in docs\Configure.md ? or in the release notes ?