Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/bee/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const (
optionNameChequebookVerification = "chequebook-verification"
optionNameChequebookMinBalance = "chequebook-min-balance"
optionNameFullNode = "full-node"
optionNameLightNodeLimit = "light-node-limit"
optionNamePostageContractAddress = "postage-stamp-address"
optionNamePostageContractStartBlock = "postage-stamp-start-block"
optionNamePriceOracleAddress = "price-oracle-address"
Expand Down Expand Up @@ -361,6 +362,7 @@ func (c *command) setAllFlags(cmd *cobra.Command) {
cmd.Flags().Bool(optionNameChequebookVerification, false, "reject full-node hive/handshake records that carry no chequebook address")
cmd.Flags().String(optionNameChequebookMinBalance, "110000000000000000", "minimum chequebook token balance required for verification, in token small units (default 11 BZZ)")
cmd.Flags().Bool(optionNameFullNode, false, "cause the node to start in full mode")
cmd.Flags().Int(optionNameLightNodeLimit, 100, "light node limit")
cmd.Flags().String(optionNamePostageContractAddress, "", "postage stamp contract address")
cmd.Flags().Uint64(optionNamePostageContractStartBlock, 0, "postage stamp contract start block number")
cmd.Flags().String(optionNamePriceOracleAddress, "", "price oracle contract address")
Expand Down
1 change: 1 addition & 0 deletions cmd/bee/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ func buildBeeNode(ctx context.Context, c *command, cmd *cobra.Command, logger lo
AutoTLSDomain: c.config.GetString(optionAutoTLSDomain),
AutoTLSRegistrationEndpoint: c.config.GetString(optionAutoTLSRegistrationEndpoint),
FullNodeMode: fullNode,
LightNodeLimit: c.config.GetInt(optionNameLightNodeLimit),
Logger: logger,
MinimumGasTipCap: c.config.GetUint64(optionNameMinimumGasTipCap),
GasLimitFallback: c.config.GetUint64(optionNameGasLimitFallback),
Expand Down
2 changes: 2 additions & 0 deletions packaging/bee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,5 @@ password-file: "/var/lib/bee/password"
# autotls-ca-endpoint: ""
## SIMD BMT hashing opt-in flag (only available on linux amd64)
# use-simd-hashing: false
## limit of possible connected light nodes (default: 100)
# light-node-limit: 100
2 changes: 2 additions & 0 deletions packaging/homebrew-amd64/bee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,5 @@ password-file: "/usr/local/var/lib/swarm-bee/password"
# autotls-ca-endpoint: ""
## SIMD BMT hashing opt-in flag (only available on linux amd64)
# use-simd-hashing: false
## limit of possible connected light nodes (default: 100)
# light-node-limit: 100
2 changes: 2 additions & 0 deletions packaging/homebrew-arm64/bee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,5 @@ password-file: "/opt/homebrew/var/lib/swarm-bee/password"
# autotls-ca-endpoint: ""
## SIMD BMT hashing opt-in flag (only available on linux amd64)
# use-simd-hashing: false
## limit of possible connected light nodes (default: 100)
# light-node-limit: 100
2 changes: 2 additions & 0 deletions packaging/scoop/bee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,5 @@ password-file: "./password"
# autotls-ca-endpoint: ""
## SIMD BMT hashing opt-in flag (only available on linux amd64)
# use-simd-hashing: false
## limit of possible connected light nodes (default: 100)
# light-node-limit: 100
2 changes: 2 additions & 0 deletions pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ type Options struct {
AutoTLSDomain string
AutoTLSRegistrationEndpoint string
FullNodeMode bool
LightNodeLimit int
GasLimitFallback uint64
Logger log.Logger
MinimumGasTipCap uint64
Expand Down Expand Up @@ -733,6 +734,7 @@ func NewBee(
AutoTLSCAEndpoint: o.AutoTLSCAEndpoint,
WelcomeMessage: o.WelcomeMessage,
FullNode: o.FullNodeMode,
LightNodeLimit: o.LightNodeLimit,
Nonce: nonce,
AllowPrivateCIDRs: o.AllowPrivateCIDRs,
Registry: registry,
Expand Down
Loading