Skip to content

Commit e3dd8fd

Browse files
committed
f add docs noting that we limit peer counts
1 parent 4a20296 commit e3dd8fd

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
@@ -577,6 +577,14 @@ pub type SimpleRefChannelManager<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, M, T, F, L> = C
577577
/// offline for a full minute. In order to track this, you must call
578578
/// timer_tick_occurred roughly once per minute, though it doesn't have to be perfect.
579579
///
580+
/// ChannelManager limits the number of inbound connections and inbound channels which have not yet
581+
/// had their funding transaction confirmed. This may result in nodes which we do not have a
582+
/// channel with being unable to connect to us or open new channels with us if we have many peers
583+
/// with unfunded channels.
584+
///
585+
/// Because it is an indication of trust, inbound channels which we've accepted as 0conf are
586+
/// exempted from the count of unfunded channels.
587+
///
580588
/// Rather than using a plain ChannelManager, it is preferable to use either a SimpleArcChannelManager
581589
/// a SimpleRefChannelManager, for conciseness. See their documentation for more details, but
582590
/// essentially you should default to using a SimpleRefChannelManager, and use a

0 commit comments

Comments
 (0)