Networkstring`long:"network" description:"network to run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet"`
SwapServerstring`long:"swapserver" description:"swap server address host:port"`
TLSPathSwapSrvstring`long:"tlspathswapserver" description:"Path to swap server tls certificate. Only needed if the swap server uses a self-signed certificate."`
RPCListenstring`long:"rpclisten" description:"Address to listen on for gRPC clients"`
RESTListenstring`long:"restlisten" description:"Address to listen on for REST clients"`
CORSOriginstring`long:"corsorigin" description:"The value to send in the Access-Control-Allow-Origin header. Header will be omitted if empty."`
ShowVersionbool`long:"version" description:"Display version information and exit"`
Networkstring`long:"network" description:"network to run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet"`
RPCListenstring`long:"rpclisten" description:"Address to listen on for gRPC clients"`
RESTListenstring`long:"restlisten" description:"Address to listen on for REST clients"`
CORSOriginstring`long:"corsorigin" description:"The value to send in the Access-Control-Allow-Origin header. Header will be omitted if empty."`
LogDirstring`long:"logdir" description:"Directory to log output."`
MaxLogFilesint`long:"maxlogfiles" description:"Maximum logfiles to keep (0 for no rotation)"`
@ -48,8 +53,9 @@ type Config struct {
LoopOutMaxPartsuint32`long:"loopoutmaxparts" description:"The maximum number of payment parts that may be used for a loop out swap."`
Lnd*lndConfig`group:"lnd" namespace:"lnd"`
Proxystring`long:"proxy" description:"The host:port of a SOCKS proxy through which all connections to the swap server will be established over."`
ViewviewParameters`command:"view" alias:"v" description:"View all swaps in the database. This command can only be executed when loopd is not running."`
}
@ -62,10 +68,12 @@ const (
// DefaultConfig returns all default values for the Config struct.