mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
cmd/bzzd: change nosync flag to sync and BootTFlag
This commit is contained in:
parent
00813e4faf
commit
8b585fd377
1 changed files with 5 additions and 5 deletions
|
|
@ -76,9 +76,9 @@ var (
|
||||||
Name: "swap",
|
Name: "swap",
|
||||||
Usage: "Swarm SWAP enabled (default false)",
|
Usage: "Swarm SWAP enabled (default false)",
|
||||||
}
|
}
|
||||||
SwarmSyncDisabled = cli.BoolFlag{
|
SwarmSyncEnabled = cli.BoolTFlag{
|
||||||
Name: "nosync",
|
Name: "sync",
|
||||||
Usage: "Swarm Syncing disabled (default false)",
|
Usage: "Swarm Syncing enabled (default true)",
|
||||||
}
|
}
|
||||||
EthAPI = cli.StringFlag{
|
EthAPI = cli.StringFlag{
|
||||||
Name: "ethapi",
|
Name: "ethapi",
|
||||||
|
|
@ -118,7 +118,7 @@ func init() {
|
||||||
EthAPI,
|
EthAPI,
|
||||||
SwarmConfigPathFlag,
|
SwarmConfigPathFlag,
|
||||||
SwarmSwapEnabled,
|
SwarmSwapEnabled,
|
||||||
SwarmSyncDisabled,
|
SwarmSyncEnabled,
|
||||||
SwarmPortFlag,
|
SwarmPortFlag,
|
||||||
SwarmAccountFlag,
|
SwarmAccountFlag,
|
||||||
SwarmNetworkIdFlag,
|
SwarmNetworkIdFlag,
|
||||||
|
|
@ -176,7 +176,7 @@ func registerBzzService(ctx *cli.Context, stack *node.Node) {
|
||||||
bzzconfig.Port = bzzport
|
bzzconfig.Port = bzzport
|
||||||
}
|
}
|
||||||
swapEnabled := ctx.GlobalBool(SwarmSwapEnabled.Name)
|
swapEnabled := ctx.GlobalBool(SwarmSwapEnabled.Name)
|
||||||
syncEnabled := !ctx.GlobalBool(SwarmSyncDisabled.Name)
|
syncEnabled := ctx.GlobalBoolT(SwarmSyncEnabled.Name)
|
||||||
|
|
||||||
ethapi := ctx.GlobalString(EthAPI.Name)
|
ethapi := ctx.GlobalString(EthAPI.Name)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue