Commit 6b6a405
committed
Drop
Previously, LDK would by default limit channels pre-Wumbo sizes and
leave it to the user to bump
`ChannelHandshakeLimits::max_funding_satoshis`. This has mostly
historical reasons that aimed to allow limiting risk when Lightning and
LDK were not as matured as today. By now, we do however expect ~all
users to eventually want to bump this limit, and having them pick an
arbitrary value (or pick a default ourselves) is kinda odd. Users that
still want to limit risks have ample other means to do so, for example
manually rejecting inbound channels via the manual-acceptence flow (via
`Event::OpenChannelRequest`) or soon even limiting risk on a per-HTLC
basis via general purpose HTLC interception.
Furthermore, it turns out that our current implementation is wrong, as
we do always announce `Wumbo`/`option_supports_large_channels` support
via the `IN` feature in `ChannelManager` defaults, irrespective of what
limit is configured. This has us announcing support for Wumbo channels
to only then reject inbound requests in case a counterparty dares to
actually try to open one.
To address this, we here simply propose to drop the
`max_funding_satoshis` field and corresponding checks entirely, and do
what we've announced to the network for a long time: enable Wumbo by
default.ChannelHandshakeLimits::max_funding_satoshis
1 parent 5a81e17 commit 6b6a405
File tree
3 files changed
+2
-31
lines changed- lightning/src
- ln
- util
3 files changed
+2
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3413 | 3413 | | |
3414 | 3414 | | |
3415 | 3415 | | |
3416 | | - | |
3417 | | - | |
3418 | | - | |
3419 | | - | |
3420 | | - | |
3421 | | - | |
3422 | | - | |
3423 | 3416 | | |
3424 | 3417 | | |
3425 | 3418 | | |
| |||
16068 | 16061 | | |
16069 | 16062 | | |
16070 | 16063 | | |
16071 | | - | |
16072 | | - | |
16073 | | - | |
16074 | | - | |
16075 | | - | |
| 16064 | + | |
16076 | 16065 | | |
16077 | 16066 | | |
16078 | 16067 | | |
| |||
16125 | 16114 | | |
16126 | 16115 | | |
16127 | 16116 | | |
16128 | | - | |
16129 | | - | |
16130 | | - | |
16131 | | - | |
16132 | | - | |
16133 | | - | |
16134 | | - | |
16135 | | - | |
16136 | | - | |
16137 | 16117 | | |
16138 | 16118 | | |
16139 | 16119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
503 | | - | |
| 502 | + | |
504 | 503 | | |
505 | 504 | | |
506 | 505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
302 | 301 | | |
303 | 302 | | |
304 | 303 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | 304 | | |
311 | 305 | | |
312 | 306 | | |
| |||
376 | 370 | | |
377 | 371 | | |
378 | 372 | | |
379 | | - | |
380 | 373 | | |
381 | 374 | | |
382 | 375 | | |
| |||
397 | 390 | | |
398 | 391 | | |
399 | 392 | | |
400 | | - | |
401 | 393 | | |
402 | 394 | | |
403 | 395 | | |
| |||
0 commit comments