mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-21 01:00:15 +02:00
config: Add settings for Alias and Color
This commit adds configuration variables for setting the Color and Alias of the Node.
This commit is contained in:
parent
ecff8f2a07
commit
a40ee8fe8a
@ -55,6 +55,9 @@ const (
|
|||||||
defaultLitecoinBaseFeeMSat = 1000
|
defaultLitecoinBaseFeeMSat = 1000
|
||||||
defaultLitecoinFeeRate = 1
|
defaultLitecoinFeeRate = 1
|
||||||
defaultLitecoinTimeLockDelta = 576
|
defaultLitecoinTimeLockDelta = 576
|
||||||
|
|
||||||
|
defaultAlias = ""
|
||||||
|
defaultColor = "#3399FF"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -172,6 +175,9 @@ type config struct {
|
|||||||
NoEncryptWallet bool `long:"noencryptwallet" description:"If set, wallet will be encrypted using the default passphrase."`
|
NoEncryptWallet bool `long:"noencryptwallet" description:"If set, wallet will be encrypted using the default passphrase."`
|
||||||
|
|
||||||
TrickleDelay int `long:"trickledelay" description:"Time in milliseconds between each release of announcements to the network"`
|
TrickleDelay int `long:"trickledelay" description:"Time in milliseconds between each release of announcements to the network"`
|
||||||
|
|
||||||
|
Alias string `long:"alias" description:"The node alias. Used as a moniker by peers and intelligence services"`
|
||||||
|
Color string `long:"color" description:"The color of the node in hex format (i.e. '#3399FF'). Used to customize node appearance in intelligence services"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// loadConfig initializes and parses the config using a config file and command
|
// loadConfig initializes and parses the config using a config file and command
|
||||||
@ -227,6 +233,8 @@ func loadConfig() (*config, error) {
|
|||||||
Allocation: 0.6,
|
Allocation: 0.6,
|
||||||
},
|
},
|
||||||
TrickleDelay: defaultTrickleDelay,
|
TrickleDelay: defaultTrickleDelay,
|
||||||
|
Alias: defaultAlias,
|
||||||
|
Color: defaultColor,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pre-parse the command line options to pick up an alternative config
|
// Pre-parse the command line options to pick up an alternative config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user