Skip to content

Commit 7ec6353

Browse files
docs: update the docs in according with the new code
Suggested-by: @rustyrussell Signed-off-by: Vincenzo Palazzo <[email protected]> # Title: Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 3f9e61e commit 7ec6353

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

bitcoin/chainparams.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ struct chainparams {
2323
const struct bitcoin_blkid genesis_blockhash;
2424
const int rpc_port;
2525
/**
26-
* BOLT 1: The default TCP port depends on the network used. The most common networks are:
26+
* BOLT 1:
27+
*
28+
* The default TCP port depends on the network used. The most common networks are:
2729
*
2830
* - Bitcoin mainet with port number 9735 or the corresponding hexadecimal `0x2607`;
2931
* - Bitcoin testnet with port number 19735 (`0x4D17`);

doc/lightning-connect.7.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ be of the form *id@host* or *id@host:port*. In this case, the *host* and
1818

1919
*host* is the peer's hostname or IP address.
2020

21-
If not specified, the *port* defaults to 9735.
21+
If not specified, the *port* depends on the current network:
22+
- bitcoin **mainnet**: 9735.
23+
- bitcoin **testnet**: 19735.
24+
- bitcoin **signet**: 39735.
25+
- bitcoin **regtest**: 19846.
2226

2327
If *host* is not specified (or doesn't work), the connection will be attempted to an IP
2428
belonging to *id* obtained through gossip with other already connected

doc/lightningd-config.5.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ network.
370370
Note that for simple setups, the implicit *autolisten* option does the
371371
right thing: for the mainnet (bitcoin) network it will try to bind to
372372
port 9735 on IPv4 and IPv6, and will announce it to peers if it seems
373-
like a public address.
373+
like a public address (and other default ports for other networks,
374+
as described below).
374375

375376
Core Lightning also support IPv4/6 address discovery behind NAT routers.
376377
If your node detects an new public address, it will update its announcement.

0 commit comments

Comments
 (0)