config: expose gossip.pinned-syncers for conf
The pinned syncer set is exposed as a comma-separated list of pubkeys.
This commit is contained in:
5 files changed
+59
No files matched your search
@@ -309,6 +309,8 @@ type Config struct {
|
||||
|
||||
Routing *lncfg.Routing `group:"routing" namespace:"routing"`
|
||||
|
||||
Gossip *lncfg.Gossip `group:"gossip" namespace:"gossip"`
|
||||
|
||||
Workers *lncfg.Workers `group:"workers" namespace:"workers"`
|
||||
|
||||
Caches *lncfg.Caches `group:"caches" namespace:"caches"`
|
||||
@@ -477,6 +479,7 @@ func DefaultConfig() Config {
|
||||
Backoff: defaultTLSBackoff,
|
||||
},
|
||||
},
|
||||
Gossip: &lncfg.Gossip{},
|
||||
MaxOutgoingCltvExpiry: htlcswitch.DefaultMaxOutgoingCltvExpiry,
|
||||
MaxChannelFeeAllocation: htlcswitch.DefaultMaxLinkFeeAllocation,
|
||||
MaxCommitFeeRateAnchors: lnwallet.DefaultAnchorsCommitMaxFeeRateSatPerVByte,
|
||||
@@ -1289,6 +1292,10 @@ func ValidateConfig(cfg Config, usageMessage string) (*Config, error) {
|
||||
maxRemoteHtlcs)
|
||||
}
|
||||
|
||||
if err := cfg.Gossip.Parse(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Validate the subconfigs for workers, caches, and the tower client.
|
||||
err = lncfg.Validate(
|
||||
cfg.Workers,
|
||||
|
||||
Reference in new issue
Block a user