Skip to content

Commit ef87c7a

Browse files
authored
Merge pull request #1120 from bitcoin-coder-bob/testnet4-network-option
network flag to support testnet4
2 parents 5875147 + 2685477 commit ef87c7a

File tree

3 files changed

+51
-3
lines changed

3 files changed

+51
-3
lines changed

config.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ type Config struct {
178178

179179
// Network is the Bitcoin network we're running on. This will be parsed
180180
// before the configuration is loaded and will set the correct flag on
181-
// `lnd.bitcoin.mainnet|testnet|regtest|signet` and also for the other
182-
// daemons. That way only one global network flag is needed.
183-
Network string `long:"network" description:"The network the UI and all its components run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet" choice:"signet"`
181+
// `lnd.bitcoin.mainnet|testnet|testnet4|regtest|signet` and also for
182+
// the other daemons. That way only one global network flag is needed.
183+
Network string `long:"network" description:"The network the UI and all its components run on" choice:"regtest" choice:"testnet" choice:"testnet4" choice:"mainnet" choice:"simnet" choice:"signet"`
184184

185185
Remote *subservers.RemoteConfig `group:"Remote mode options (use when lnd-mode=remote)" namespace:"remote"`
186186

@@ -810,6 +810,9 @@ func setNetwork(cfg *Config) error {
810810
case "testnet", "testnet3":
811811
cfg.Lnd.Bitcoin.TestNet3 = true
812812

813+
case "testnet4":
814+
cfg.Lnd.Bitcoin.TestNet4 = true
815+
813816
case "regtest":
814817
cfg.Lnd.Bitcoin.RegTest = true
815818

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Release Notes
2+
3+
- [Lightning Terminal](#lightning-terminal)
4+
- [Bug Fixes](#bug-fixes)
5+
- [Functional Changes/Additions](#functional-changesadditions)
6+
- [Technical and Architectural Updates](#technical-and-architectural-updates)
7+
- [Integrated Binary Updates](#integrated-binary-updates)
8+
- [LND](#lnd)
9+
- [Loop](#loop)
10+
- [Pool](#pool)
11+
- [Faraday](#faraday)
12+
- [Taproot Assets](#taproot-assets)
13+
- [Contributors](#contributors-alphabetical-order)
14+
## Lightning Terminal
15+
16+
### Bug Fixes
17+
18+
### Functional Changes/Additions
19+
20+
* Add support for connecting LiT to the [testnet4
21+
network](https://github.com/lightninglabs/lightning-terminal/pull/1120).
22+
This can be done using the `--network=testnet4` config option.
23+
24+
### Technical and Architectural Updates
25+
26+
## RPC Updates
27+
28+
## Integrated Binary Updates
29+
30+
### LND
31+
32+
### Loop
33+
34+
### Pool
35+
36+
### Faraday
37+
38+
### Taproot Assets
39+
40+
# Contributors (Alphabetical Order)
41+
42+
* bitcoin-coder-bob
43+
* Jonathan Harvey-Buschel

itest/litd_node.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ func (cfg *LitNodeConfig) defaultLitdArgs() *litArgs {
289289
switch cfg.NetParams {
290290
case &chaincfg.TestNet3Params:
291291
args["network"] = "testnet"
292+
case &chaincfg.TestNet4Params:
293+
args["network"] = "testnet4"
292294
case &chaincfg.SimNetParams:
293295
args["network"] = "simnet"
294296
case &chaincfg.RegressionNetParams:

0 commit comments

Comments
 (0)