From f586c9f60a5f2010594be774eaec4ff4e8c8054c Mon Sep 17 00:00:00 2001 From: mrekucci Date: Wed, 20 Sep 2023 19:23:14 +0800 Subject: [PATCH] feat: bee start starts the node in the ultra-light mode --- cmd/bee/cmd/cmd.go | 2 +- pkg/node/node.go | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/bee/cmd/cmd.go b/cmd/bee/cmd/cmd.go index e0ca9c92081..77a5d4bd6f7 100644 --- a/cmd/bee/cmd/cmd.go +++ b/cmd/bee/cmd/cmd.go @@ -275,7 +275,7 @@ func (c *command) setAllFlags(cmd *cobra.Command) { cmd.Flags().String(optionNameSwapFactoryAddress, "", "swap factory addresses") cmd.Flags().StringSlice(optionNameSwapLegacyFactoryAddresses, nil, "legacy swap factory addresses") cmd.Flags().String(optionNameSwapInitialDeposit, "0", "initial deposit if deploying a new chequebook") - cmd.Flags().Bool(optionNameSwapEnable, true, "enable swap") + cmd.Flags().Bool(optionNameSwapEnable, false, "enable swap") cmd.Flags().Bool(optionNameChequebookEnable, true, "enable chequebook") cmd.Flags().Bool(optionNameFullNode, false, "cause the node to start in full mode") cmd.Flags().String(optionNamePostageContractAddress, "", "postage stamp contract address") diff --git a/pkg/node/node.go b/pkg/node/node.go index 467e41aef50..36fea876a8b 100644 --- a/pkg/node/node.go +++ b/pkg/node/node.go @@ -1004,7 +1004,11 @@ func NewBee( if o.FullNodeMode && !o.BootnodeMode { logger.Info("starting in full mode") } else { - logger.Info("starting in light mode") + if chainEnabled { + logger.Info("starting in light mode") + } else { + logger.Info("starting in ultra-light mode") + } p2p.WithBlocklistStreams(p2p.DefaultBlocklistTime, retrieveProtocolSpec) p2p.WithBlocklistStreams(p2p.DefaultBlocklistTime, pushSyncProtocolSpec) p2p.WithBlocklistStreams(p2p.DefaultBlocklistTime, pullSyncProtocolSpec)