Skip to content

Commit 2f84b87

Browse files
committed
comments added
1 parent 3870acd commit 2f84b87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, L: Deref, CMH: Deref> P
576576

577577
/// Indicates a new outbound connection has been established to a node with the given node_id
578578
/// and an optional remote network address.
579+
///
579580
/// The remote network address adds the option to report a remote IP address back to a connecting
580581
/// peer using the init message.
581582
/// The user should pass the remote network address to whatever host they are connected to.
@@ -623,6 +624,10 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, L: Deref, CMH: Deref> P
623624
/// Indicates a new inbound connection has been established to a node with an optional remote
624625
/// network address.
625626
///
627+
/// The remote network address adds the option to report a remote IP address back to a connecting
628+
/// peer using the init message.
629+
/// The user should pass the remote network address to whatever host they are connected to.
630+
///
626631
/// May refuse the connection by returning an Err, but will never write bytes to the remote end
627632
/// (outbound connector always speaks first). Note that if an Err is returned here you MUST NOT
628633
/// call socket_disconnected for the new descriptor but must disconnect the connection

0 commit comments

Comments
 (0)