config: add default network value

This commit is contained in:
carla 2020-08-18 21:35:46 +02:00
parent 048a365e02
commit d229a1a607
No known key found for this signature in database
GPG key ID: 4CA7FE54A6213C91

View file

@ -13,6 +13,7 @@ import (
var (
loopDirBase = btcutil.AppDataDir("loop", false)
defaultNetwork = "mainnet"
defaultLogLevel = "info"
defaultLogDirname = "logs"
defaultLogFilename = "loopd.log"
@ -75,7 +76,7 @@ const (
// DefaultConfig returns all default values for the Config struct.
func DefaultConfig() Config {
return Config{
Network: "mainnet",
Network: defaultNetwork,
RPCListen: "localhost:11010",
RESTListen: "localhost:8081",
Server: &loopServerConfig{