You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Limit number of pending un-funded channel requests #1889
We need to limit the number of pending channel requests we have or we can OOM. We should probably just set some static limit of unfunded channels and close the oldest one when we get a request for a new one. Sadly I think this will likely allow for an attacker to prevent us from accepting new channels, but maybe that's okay.
See also the comments in dual-funding: lightning/bolts#851 (comment) We could prevent an attacker to censor our new channel acceptance by restraining new inbound connections. I don't think we have any default robust strategy yet, even you can a custom one before call to new_inbound_connection.
Activity
ariard commentedon Dec 1, 2022
See also the comments in dual-funding: lightning/bolts#851 (comment) We could prevent an attacker to censor our new channel acceptance by restraining new inbound connections. I don't think we have any default robust strategy yet, even you can a custom one before call to
new_inbound_connection.TheBlueMatt commentedon Jan 17, 2023
Note we also need to limit the total number of (inbound) peers, as there is (at least some) per-peer overhead.
ariard commentedon Jan 17, 2023
Yes -- Limiting the total number of inbound peers would be helpful both for dual-funding overflow and known per-peer overhead.
TheBlueMatt commentedon Jan 26, 2023
CC #1987 which would let us substantially raise the limits here.
Limit the number of pending un-funded inbound channel
Limit the number of pending un-funded inbound channel
Limit the number of pending un-funded inbound channel
Limit the number of pending un-funded inbound channel
Limit the number of pending un-funded inbound channel
Limit the number of pending un-funded inbound channel
Limit the number of pending un-funded inbound channel
Limit the number of pending un-funded inbound channel
Limit the number of pending un-funded inbound channel
Limit the number of pending un-funded inbound channel
Limit the number of pending un-funded inbound channel
Limit the number of pending un-funded inbound channel
Limit the number of pending un-funded inbound channel