mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 13:25:43 +01:00
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:
parent
4b11f968ad
commit
c07d44b4d4
@ -23,7 +23,9 @@ struct chainparams {
|
||||
const struct bitcoin_blkid genesis_blockhash;
|
||||
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 testnet with port number 19735 (`0x4D17`);
|
||||
|
@ -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.
|
||||
|
||||
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
|
||||
belonging to *id* obtained through gossip with other already connected
|
||||
|
@ -372,7 +372,8 @@ network.
|
||||
Note that for simple setups, the implicit *autolisten* option does the
|
||||
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
|
||||
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.
|
||||
If your node detects an new public address, it will update its announcement.
|
||||
|
Loading…
Reference in New Issue
Block a user