docs: update the docs in according with the new code

Suggested-by: @rustyrussell 

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>

# Title: 

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
Vincenzo Palazzo 2022-06-18 14:18:38 +01:00 committed by Rusty Russell
parent 4b11f968ad
commit c07d44b4d4
3 changed files with 10 additions and 3 deletions

View File

@ -23,7 +23,9 @@ struct chainparams {
const struct bitcoin_blkid genesis_blockhash; const struct bitcoin_blkid genesis_blockhash;
const int rpc_port; const int rpc_port;
/** /**
* BOLT 1: The default TCP port depends on the network used. The most common networks are: * BOLT 1:
*
* 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 mainet with port number 9735 or the corresponding hexadecimal `0x2607`;
* - Bitcoin testnet with port number 19735 (`0x4D17`); * - Bitcoin testnet with port number 19735 (`0x4D17`);

View File

@ -18,7 +18,11 @@ be of the form *id@host* or *id@host:port*. In this case, the *host* and
*host* is the peer's hostname or IP address. *host* is the peer's hostname or IP address.
If not specified, the *port* defaults to 9735. If not specified, the *port* depends on the current network:
- bitcoin **mainnet**: 9735.
- bitcoin **testnet**: 19735.
- bitcoin **signet**: 39735.
- bitcoin **regtest**: 19846.
If *host* is not specified (or doesn't work), the connection will be attempted to an IP If *host* is not specified (or doesn't work), the connection will be attempted to an IP
belonging to *id* obtained through gossip with other already connected belonging to *id* obtained through gossip with other already connected

View File

@ -372,7 +372,8 @@ network.
Note that for simple setups, the implicit *autolisten* option does the Note that for simple setups, the implicit *autolisten* option does the
right thing: for the mainnet (bitcoin) network it will try to bind to right thing: for the mainnet (bitcoin) network it will try to bind to
port 9735 on IPv4 and IPv6, and will announce it to peers if it seems port 9735 on IPv4 and IPv6, and will announce it to peers if it seems
like a public address. like a public address (and other default ports for other networks,
as described below).
Core Lightning also support IPv4/6 address discovery behind NAT routers. Core Lightning also support IPv4/6 address discovery behind NAT routers.
If your node detects an new public address, it will update its announcement. If your node detects an new public address, it will update its announcement.