From caf7064a96a4c0036bbbe91147367e0f95d224fa Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Sat, 12 Mar 2022 19:20:34 +0100 Subject: [PATCH 1/2] bolt1: intruduce port convention for different network Signed-off-by: Vincenzo Palazzo --- 01-messaging.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/01-messaging.md b/01-messaging.md index 935083b04..de4948f47 100644 --- a/01-messaging.md +++ b/01-messaging.md @@ -5,7 +5,12 @@ 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.[1](#reference-1) +The default TCP port depending from the network used. The most common networks are: + +- Bitcoin mainet with port number 9735 or the corresponding hexadecimal `0x2607`; +- Bitcoin testnet with port number 19735 (`0x4D17`). + +The Unicode code point for LIGHTNING [1](#reference-1), and the port convention try to follow the Bitcoin 0.22 convention. All data fields are unsigned big-endian unless otherwise specified. From 9101f33c274f904fa5ff4fc3247a82b3ccc36af4 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Fri, 18 Mar 2022 12:05:51 +0100 Subject: [PATCH 2/2] bolt1: include the port for signet network Signed-off-by: Vincenzo Palazzo --- 01-messaging.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/01-messaging.md b/01-messaging.md index de4948f47..f74171f1f 100644 --- a/01-messaging.md +++ b/01-messaging.md @@ -5,12 +5,13 @@ 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 depending from the network used. The most common networks are: +The default TCP port depends on the network used. The most common networks are: - Bitcoin mainet with port number 9735 or the corresponding hexadecimal `0x2607`; -- Bitcoin testnet with port number 19735 (`0x4D17`). +- Bitcoin testnet with port number 19735 (`0x4D17`); +- Bitcoin signet with port number 39735 (`0xF87`). -The Unicode code point for LIGHTNING [1](#reference-1), and the port convention try to follow the Bitcoin 0.22 convention. +The Unicode code point for LIGHTNING [1](#reference-1), and the port convention try to follow the Bitcoin Core convention. All data fields are unsigned big-endian unless otherwise specified.