Skip to content

Commit f6200f2

Browse files
committed
f add docs noting that we limit peer counts
1 parent ae7afb4 commit f6200f2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,14 @@ pub type SimpleRefChannelManager<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, M, T, F, L> = C
574574
/// offline for a full minute. In order to track this, you must call
575575
/// timer_tick_occurred roughly once per minute, though it doesn't have to be perfect.
576576
///
577+
/// ChannelManager limits the number of inbound connections and inbound channels which have not yet
578+
/// had their funding transaction confirmed. This may result in nodes which we do not have a
579+
/// channel with being unable to connect to us or open new channels with us if we have many peers
580+
/// with unfunded channels.
581+
///
582+
/// Because it is an indication of trust, inbound channels which we've accepted as 0conf are
583+
/// exempted from the count of unfunded channels.
584+
///
577585
/// Rather than using a plain ChannelManager, it is preferable to use either a SimpleArcChannelManager
578586
/// a SimpleRefChannelManager, for conciseness. See their documentation for more details, but
579587
/// essentially you should default to using a SimpleRefChannelManager, and use a

0 commit comments

Comments
 (0)