@@ -59,19 +59,22 @@ const (
59
59
testnetServer = "test.swap.lightning.today:11010"
60
60
)
61
61
62
- var defaultConfig = config {
63
- Network : "mainnet" ,
64
- RPCListen : "localhost:11010" ,
65
- RESTListen : "localhost:8081" ,
66
- Insecure : false ,
67
- LogDir : defaultLogDir ,
68
- MaxLogFiles : defaultMaxLogFiles ,
69
- MaxLogFileSize : defaultMaxLogFileSize ,
70
- DebugLevel : defaultLogLevel ,
71
- MaxLSATCost : lsat .DefaultMaxCostSats ,
72
- MaxLSATFee : lsat .DefaultMaxRoutingFeeSats ,
73
- LoopOutMaxParts : defaultLoopOutMaxParts ,
74
- Lnd : & lndConfig {
75
- Host : "localhost:10009" ,
76
- },
62
+ // DefaultConfig returns all default values for the Config struct.
63
+ func DefaultConfig () config {
64
+ return config {
65
+ Network : "mainnet" ,
66
+ RPCListen : "localhost:11010" ,
67
+ RESTListen : "localhost:8081" ,
68
+ Insecure : false ,
69
+ LogDir : defaultLogDir ,
70
+ MaxLogFiles : defaultMaxLogFiles ,
71
+ MaxLogFileSize : defaultMaxLogFileSize ,
72
+ DebugLevel : defaultLogLevel ,
73
+ MaxLSATCost : lsat .DefaultMaxCostSats ,
74
+ MaxLSATFee : lsat .DefaultMaxRoutingFeeSats ,
75
+ LoopOutMaxParts : defaultLoopOutMaxParts ,
76
+ Lnd : & lndConfig {
77
+ Host : "localhost:10009" ,
78
+ },
79
+ }
77
80
}
0 commit comments