Skip to content

Commit f640394

Browse files
doc: Add details and script check for testnet4
1 parent 02b19a8 commit f640394

File tree

6 files changed

+25
-8
lines changed

6 files changed

+25
-8
lines changed

contrib/msggen/msggen/schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20838,6 +20838,10 @@
2083820838
"set": false,
2083920839
"source": "default"
2084020840
},
20841+
"testnet4": {
20842+
"set": false,
20843+
"source": "default"
20844+
},
2084120845
"watchtime-blocks": {
2084220846
"value_int": 5,
2084320847
"source": "cmdline"

doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ check-manpages: all-programs check-config-docs default-targets
260260
# Makes sure that fields mentioned in schema are in man page, and vice versa.
261261
check-config-docs:
262262
@for c in `sed -n 's/^ "\(.*\)": {/\1/p' doc/schemas/lightning-listconfigs.json | grep -v '^# version$$' | grep -v '^plugins$$' | grep -v '^important-plugins$$'`; do if ! grep -q "^ \*\*$$c\*\*" doc/lightningd-config.5.md; then echo "$$c undocumented!"; exit 1; fi; done
263-
@for c in `grep -v '\[plugin ' doc/lightningd-config.5.md | sed -n 's/^ \*\*\([^*]*\)\*\*.*/\1/p' | grep -v '^\(help\|version\|mainnet\|testnet\|signet\|plugin\|important-plugin\|plugin-dir\|clear-plugins\)$$'`; do if ! grep -q '"'"$$c"'"' doc/schemas/lightning-listconfigs.json; then echo "$$c documented but not in schema!"; exit 1; fi; done
263+
@for c in `grep -v '\[plugin ' doc/lightningd-config.5.md | sed -n 's/^ \*\*\([^*]*\)\*\*.*/\1/p' | grep -v '^\(help\|version\|mainnet\|testnet\|testnet4\|signet\|plugin\|important-plugin\|plugin-dir\|clear-plugins\)$$'`; do if ! grep -q '"'"$$c"'"' doc/schemas/lightning-listconfigs.json; then echo "$$c documented but not in schema!"; exit 1; fi; done
264264

265265
doc-clean:
266266
$(RM) $(MANPAGES) $(MARKDOWN_WITH_SCHEMA) doc/.doc_version

doc/getting-started/getting-started/configuration.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The [`lightning-listconfigs`](ref:lightning-listconfigs) command will output a v
6363

6464
**network**=_NETWORK_
6565

66-
- Select the network parameters (_bitcoin_, _testnet_, _signet_, or _regtest_).
66+
- Select the network parameters (_bitcoin_, _testnet_, _testnet4_, _signet_, or _regtest_).
6767
This is not valid within the per-network configuration file.
6868

6969
- **mainnet**
@@ -74,6 +74,10 @@ The [`lightning-listconfigs`](ref:lightning-listconfigs) command will output a v
7474

7575
Alias for _network=testnet_.
7676

77+
- **testnet4**
78+
79+
Alias for _network=testnet4_.
80+
7781
- **signet**
7882

7983
Alias for _network=signet_.
@@ -384,11 +388,11 @@ You can instead use _addr_ to override this (eg. to change the port), or precise
384388
Set an IP address (v4 or v6) or automatic Tor address to listen on and (maybe) announce as our node address.
385389

386390
An empty 'IPADDRESS' is a special value meaning bind to IPv4 and/or IPv6 on all interfaces, '0.0.0.0' means bind to all IPv4 interfaces, '::' means 'bind to all IPv6 interfaces' (if you want to specify an IPv6 address _and_ a port, use `[]` around the IPv6 address, like `[::]:9750`).
387-
If 'PORT' is not specified, the default port 9735 is used for mainnet (testnet: 19735, signet: 39735, regtest: 19846). If we can determine a public IP address from the resulting binding,
391+
If 'PORT' is not specified, the default port 9735 is used for mainnet (testnet: 19735, signet: 39735, regtest: 19846, testnet4: 49735). If we can determine a public IP address from the resulting binding,
388392
the address is announced.
389393

390394
If the argument begins with 'autotor:' then it is followed by the IPv4 or IPv6 address of the Tor control port (default port 9051), and this will be used to configure a Tor hidden service for port 9735 in case of mainnet (bitcoin) network whereas other networks (testnet,
391-
signet, regtest) will set the same default ports they use for non-Tor addresses (see above).
395+
signet, regtest, testnet4) will set the same default ports they use for non-Tor addresses (see above).
392396
The Tor hidden service will be configured to point to the first IPv4 or IPv6 address we bind to and is by default unique to your node's id.
393397

394398
If the argument begins with 'statictor:' then it is followed by the IPv4 or IPv6 address of the Tor control port (default port 9051), and this will be used to configure a static Tor hidden service.

doc/lightning-cli.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ OPTIONS
2626
* **--network**=*network*
2727
* **--mainnet**
2828
* **--testnet**
29+
* **--testnet4**
2930
* **--signet**
3031
* **--regtest**
3132

doc/lightningd-config.5.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Bitcoin control options:
9797

9898
* **network**=*NETWORK*
9999

100-
Select the network parameters (*bitcoin*, *testnet*, *signet*, or *regtest*).
100+
Select the network parameters (*bitcoin*, *testnet*, *testnet4*, *signet*, or *regtest*).
101101
This is not valid within the per-network configuration file.
102102

103103
* **mainnet**
@@ -112,6 +112,10 @@ This is not valid within the per-network configuration file.
112112

113113
Alias for *network=testnet*.
114114

115+
* **testnet4**
116+
117+
Alias for *network=testnet4*.
118+
115119
* **signet**
116120

117121
Alias for *network=signet*.
@@ -571,16 +575,16 @@ interfaces, '::' means 'bind to all IPv6 interfaces' (if you want to
571575
specify an IPv6 address *and* a port, use `[]` around the IPv6
572576
address, like `[::]:9750`).
573577
If 'PORT' is not specified, the default port 9735 is used for mainnet
574-
(testnet: 19735, signet: 39735, regtest: 19846).
578+
(testnet: 19735, signet: 39735, regtest: 19846, testnet4: 49735).
575579
If we can determine a public IP address from the resulting binding,
576580
the address is announced.
577581

578582
If the argument begins with 'autotor:' then it is followed by the
579583
IPv4 or IPv6 address of the Tor control port (default port 9051),
580584
and this will be used to configure a Tor hidden service for port 9735
581585
in case of mainnet (bitcoin) network whereas other networks (testnet,
582-
signet, regtest) will set the same default ports they use for non-Tor
583-
addresses (see above).
586+
testnet4, signet, regtest) will set the same default ports they use for
587+
non-Tor addresses (see above).
584588
The Tor hidden service will be configured to point to the
585589
first IPv4 or IPv6 address we bind to and is by default unique to
586590
your node's id.

doc/schemas/lightning-listconfigs.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2972,6 +2972,10 @@
29722972
"set": false,
29732973
"source": "default"
29742974
},
2975+
"testnet4": {
2976+
"set": false,
2977+
"source": "default"
2978+
},
29752979
"watchtime-blocks": {
29762980
"value_int": 5,
29772981
"source": "cmdline"

0 commit comments

Comments
 (0)