You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.go
+17-74Lines changed: 17 additions & 74 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@
5
5
package main
6
6
7
7
import (
8
-
"encoding/hex"
9
8
"fmt"
10
9
"net"
11
10
"os"
@@ -17,7 +16,6 @@ import (
17
16
"time"
18
17
19
18
flags "github.com/jessevdk/go-flags"
20
-
"github.com/lbryio/lbcd/chaincfg"
21
19
"github.com/lbryio/lbcd/version"
22
20
btcutil "github.com/lbryio/lbcutil"
23
21
"github.com/lbryio/lbcwallet/internal/cfgutil"
@@ -46,27 +44,23 @@ var (
46
44
47
45
typeconfigstruct {
48
46
// General application behavior
49
-
ConfigFile*cfgutil.ExplicitString`short:"C" long:"configfile" description:"Path to configuration file"`
50
-
ShowVersionbool`short:"V" long:"version" description:"Display version information and exit"`
51
-
Createbool`long:"create" description:"Create the wallet if it does not exist"`
52
-
CreateTempbool`long:"createtemp" description:"Create a temporary simulation wallet (pass=password) in the data directory indicated; must call with --datadir"`
53
-
AppDataDir*cfgutil.ExplicitString`short:"A" long:"appdata" description:"Application data directory for wallet config, databases and logs"`
54
-
TestNet3bool`long:"testnet" description:"Use the test Bitcoin network (version 3) (default client port: 19244, server port: 19245)"`
55
-
Regtestbool`long:"regtest" description:"Use the regression test network (default client port: 29244, server port: 29245)"`
56
-
SimNetbool`long:"simnet" description:"Use the simulation test network (default client port: 39244, server port: 39245)"`
57
-
SigNetbool`long:"signet" description:"Use the signet test network (default client port: 49244, server port: 49245)"`
58
-
SigNetChallengestring`long:"signetchallenge" description:"Connect to a custom signet network defined by this challenge instead of using the global default signet test network -- Can be specified multiple times"`
59
-
SigNetSeedNode []string`long:"signetseednode" description:"Specify a seed node for the signet network instead of using the global default signet network seed nodes"`
LogDirstring`long:"logdir" description:"Directory to log output."`
62
-
Profilestring`long:"profile" description:"Enable HTTP profiling on given port -- NOTE port must be between 1024 and 65536"`
63
-
DBTimeout time.Duration`long:"dbtimeout" description:"The timeout value to use when opening the wallet database."`
47
+
ConfigFile*cfgutil.ExplicitString`short:"C" long:"configfile" description:"Path to configuration file"`
48
+
ShowVersionbool`short:"V" long:"version" description:"Display version information and exit"`
49
+
Createbool`long:"create" description:"Create the wallet if it does not exist"`
50
+
CreateTempbool`long:"createtemp" description:"Create a temporary simulation wallet (pass=password) in the data directory indicated; must call with --datadir"`
51
+
AppDataDir*cfgutil.ExplicitString`short:"A" long:"appdata" description:"Application data directory for wallet config, databases and logs"`
52
+
TestNet3bool`long:"testnet" description:"Use the test Bitcoin network (version 3) (default client port: 19244, server port: 19245)"`
53
+
Regtestbool`long:"regtest" description:"Use the regression test network (default client port: 29244, server port: 29245)"`
LogDirstring`long:"logdir" description:"Directory to log output."`
56
+
Profilestring`long:"profile" description:"Enable HTTP profiling on given port -- NOTE port must be between 1024 and 65536"`
57
+
DBTimeout time.Duration`long:"dbtimeout" description:"The timeout value to use when opening the wallet database."`
64
58
65
59
// Wallet options
66
60
WalletPassstring`long:"walletpass" default-mask:"-" description:"The public wallet password -- Only required if the wallet was created with one"`
67
61
68
62
// RPC client options
69
-
RPCConnectstring`short:"c" long:"rpcconnect" description:"Hostname/IP and port of lbcd RPC server to connect to (default localhost:9245, testnet: localhost:19245, regtest: localhost:29245 simnet: localhost:39245)"`
63
+
RPCConnectstring`short:"c" long:"rpcconnect" description:"Hostname/IP and port of lbcd RPC server to connect to (default localhost:9245, testnet: localhost:19245, regtest: localhost:29245)"`
70
64
CAFile*cfgutil.ExplicitString`long:"cafile" description:"File containing root certificates to authenticate a TLS connections with lbcd"`
71
65
DisableClientTLSbool`long:"noclienttls" description:"Disable TLS for the RPC client"`
72
66
SkipVerifybool`long:"skipverify" description:"Skip verifying TLS for the RPC client"`
@@ -75,18 +69,11 @@ type config struct {
75
69
ProxyPassstring`long:"proxypass" default-mask:"-" description:"Password for proxy server"`
76
70
77
71
// RPC server options
78
-
//
79
-
// The legacy server is still enabled by default (and eventually will be
80
-
// replaced with the experimental server) so prepare for that change by
81
-
// renaming the struct fields (but not the configuration options).
82
-
//
83
-
// Usernames can also be used for the consensus RPC client, so they
84
-
// aren't considered legacy.
85
72
RPCCert*cfgutil.ExplicitString`long:"rpccert" description:"File containing the certificate file"`
86
73
RPCKey*cfgutil.ExplicitString`long:"rpckey" description:"File containing the certificate key"`
87
74
OneTimeTLSKeybool`long:"onetimetlskey" description:"Generate a new TLS certpair at startup, but only write the certificate to disk"`
88
75
DisableServerTLSbool`long:"noservertls" description:"Disable TLS for the RPC server"`
89
-
LegacyRPCListeners []string`long:"rpclisten" description:"Listen for legacy RPC connections on this interface/port (default port: 9244, testnet: 19244, regtest: 29244, simnet: 29244)"`
76
+
LegacyRPCListeners []string`long:"rpclisten" description:"Listen for legacy RPC connections on this interface/port (default port: 9244, testnet: 19244, regtest: 29244)"`
90
77
LegacyRPCMaxClientsint64`long:"rpcmaxclients" description:"Max number of legacy RPC clients for standard connections"`
91
78
LegacyRPCMaxWebsocketsint64`long:"rpcmaxwebsockets" description:"Max number of RPC websocket connections"`
92
79
RPCUserstring`short:"u" long:"rpcuser" description:"Username for RPC and lbcd authentication"`
0 commit comments