Skip to content

Commit

Permalink
bolt1: intruduce port convention for different network
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed Mar 12, 2022
1 parent e60d594 commit 335a5a1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion 01-messaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
This protocol assumes an underlying authenticated and ordered transport mechanism that takes care of framing individual messages.
[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.

The default TCP port is 9735. This corresponds to hexadecimal `0x2607`: the Unicode code point for LIGHTNING.<sup>[1](#reference-1)</sup>
The default TCP port depending from the network used. The most common network are:

- Bitcoin mainet with port number 9735 or the corresponds hexadecimal `0x2607`;
- Bitcoin testnet with port number 19735 or the hexadecimal `0x4D17`;
- Litecoin mainet with port number 9736 or the corresponds hexadecimal `0x2608`;
- Litecoin testnet with port number 19736 or the corresponds hexadecimal `0x4D18`.

The Unicode code point for LIGHTNING.<sup>[1](#reference-1)</sup>

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

Expand Down

0 comments on commit 335a5a1

Please sign in to comment.