|
|
@ -1692,6 +1692,11 @@ var ( |
|
|
|
Usage: "Initial shard-wise number of peers to start syncing", |
|
|
|
Usage: "Initial shard-wise number of peers to start syncing", |
|
|
|
Hidden: true, |
|
|
|
Hidden: true, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
syncMaxAdvertiseWaitTimeFlag = cli.IntFlag{ |
|
|
|
|
|
|
|
Name: "sync.max-advertise-wait-time", |
|
|
|
|
|
|
|
Usage: "The max time duration between two advertises for each p2p peer to tell other nodes what protocols it supports", |
|
|
|
|
|
|
|
Hidden: true, |
|
|
|
|
|
|
|
} |
|
|
|
syncDiscSoftLowFlag = cli.IntFlag{ |
|
|
|
syncDiscSoftLowFlag = cli.IntFlag{ |
|
|
|
Name: "sync.disc.soft-low-cap", |
|
|
|
Name: "sync.disc.soft-low-cap", |
|
|
|
Usage: "Soft low cap for sync stream management", |
|
|
|
Usage: "Soft low cap for sync stream management", |
|
|
@ -1740,6 +1745,10 @@ func applySyncFlags(cmd *cobra.Command, config *harmonyconfig.HarmonyConfig) { |
|
|
|
config.Sync.InitStreams = cli.GetIntFlagValue(cmd, syncInitStreamsFlag) |
|
|
|
config.Sync.InitStreams = cli.GetIntFlagValue(cmd, syncInitStreamsFlag) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if cli.IsFlagChanged(cmd, syncMaxAdvertiseWaitTimeFlag) { |
|
|
|
|
|
|
|
config.Sync.MaxAdvertiseWaitTime = cli.GetIntFlagValue(cmd, syncMaxAdvertiseWaitTimeFlag) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if cli.IsFlagChanged(cmd, syncDiscSoftLowFlag) { |
|
|
|
if cli.IsFlagChanged(cmd, syncDiscSoftLowFlag) { |
|
|
|
config.Sync.DiscSoftLowCap = cli.GetIntFlagValue(cmd, syncDiscSoftLowFlag) |
|
|
|
config.Sync.DiscSoftLowCap = cli.GetIntFlagValue(cmd, syncDiscSoftLowFlag) |
|
|
|
} |
|
|
|
} |
|
|
|