Skip to content

Commit 7607af5

Browse files
bolt1: intruduce port convention for different network
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent e60d594 commit 7607af5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

01-messaging.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
This protocol assumes an underlying authenticated and ordered transport mechanism that takes care of framing individual messages.
66
[BOLT #8](08-transport.md) specifies the canonical transport layer used in Lightning, though it can be replaced by any transport that fulfills the above guarantees.
77

8-
The default TCP port is 9735. This corresponds to hexadecimal `0x2607`: the Unicode code point for LIGHTNING.<sup>[1](#reference-1)</sup>
8+
The default TCP port depending from the network used. The most common networks are:
9+
10+
- Bitcoin mainet with port number 9735 or the corresponding hexadecimal `0x2607`;
11+
- Bitcoin testnet with port number 19735 (`0x4D17`);
12+
- Litecoin mainet with port number 9736 (`0x2608`);
13+
- Litecoin testnet with port number 19736 (`0x4D18`).
14+
15+
The Unicode code point for LIGHTNING.<sup>[1](#reference-1)</sup>
916

1017
All data fields are unsigned big-endian unless otherwise specified.
1118

0 commit comments

Comments
 (0)