Skip to content

Commit 1fd7740

Browse files
authored
chore: remove dead use-postage-snapshot flag and unused bootstrapping logic (#5318)
1 parent 48c19ef commit 1fd7740

13 files changed

Lines changed: 34 additions & 561 deletions

File tree

cmd/bee/cmd/cmd.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ const (
7272
optionNameStaticNodes = "static-nodes"
7373
optionNameAllowPrivateCIDRs = "allow-private-cidrs"
7474
optionNameSleepAfter = "sleep-after"
75-
optionNameUsePostageSnapshot = "use-postage-snapshot"
7675
optionNameStorageIncentivesEnable = "storage-incentives-enable"
7776
optionNameStateStoreCacheCapacity = "statestore-cache-capacity"
7877
optionNameTargetNeighborhood = "target-neighborhood"
@@ -288,7 +287,6 @@ func (c *command) setAllFlags(cmd *cobra.Command) {
288287
cmd.Flags().Bool(optionNamePProfMutex, false, "enable pprof mutex profile")
289288
cmd.Flags().StringSlice(optionNameStaticNodes, []string{}, "protect nodes from getting kicked out on bootnode")
290289
cmd.Flags().Bool(optionNameAllowPrivateCIDRs, false, "allow to advertise private CIDRs to the public network")
291-
cmd.Flags().Bool(optionNameUsePostageSnapshot, false, "bootstrap node using postage snapshot from the network")
292290
cmd.Flags().Bool(optionNameStorageIncentivesEnable, true, "enable storage incentives feature")
293291
cmd.Flags().Uint64(optionNameStateStoreCacheCapacity, 100_000, "lru memory caching capacity in number of statestore entries")
294292
cmd.Flags().String(optionNameTargetNeighborhood, "", "neighborhood to target in binary format (ex: 111111001) for mining the initial overlay")

cmd/bee/cmd/start.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ func buildBeeNode(ctx context.Context, c *command, cmd *cobra.Command, logger lo
331331
TracingEndpoint: tracingEndpoint,
332332
TracingServiceName: c.config.GetString(optionNameTracingServiceName),
333333
TrxDebugMode: c.config.GetBool(optionNameTransactionDebugMode),
334-
UsePostageSnapshot: c.config.GetBool(optionNameUsePostageSnapshot),
335334
WarmupTime: c.config.GetDuration(optionWarmUpTime),
336335
WelcomeMessage: c.config.GetString(optionWelcomeMessage),
337336
WhitelistedWithdrawalAddress: c.config.GetStringSlice(optionNameWhitelistedWithdrawalAddress),

packaging/bee.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ password-file: "/var/lib/bee/password"
110110
# tracing-service-name: bee
111111
## skips the gas estimate step for contract transactions
112112
# transaction-debug-mode: false
113-
## bootstrap node using postage snapshot from the network
114-
# use-postage-snapshot: false
115113
## log verbosity level 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=trace
116114
# verbosity: info
117115
## maximum node warmup duration; proceeds when stable or after this time

packaging/homebrew-amd64/bee.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ password-file: "/usr/local/var/lib/swarm-bee/password"
110110
# tracing-service-name: bee
111111
## skips the gas estimate step for contract transactions
112112
# transaction-debug-mode: false
113-
## bootstrap node using postage snapshot from the network
114-
# use-postage-snapshot: false
115113
## log verbosity level 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=trace
116114
# verbosity: info
117115
## maximum node warmup duration; proceeds when stable or after this time

packaging/homebrew-arm64/bee.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ password-file: "/opt/homebrew/var/lib/swarm-bee/password"
110110
# tracing-service-name: bee
111111
## skips the gas estimate step for contract transactions
112112
# transaction-debug-mode: false
113-
## bootstrap node using postage snapshot from the network
114-
# use-postage-snapshot: false
115113
## log verbosity level 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=trace
116114
# verbosity: info
117115
## maximum node warmup duration; proceeds when stable or after this time

packaging/scoop/bee.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ password-file: "./password"
110110
# tracing-service-name: bee
111111
## skips the gas estimate step for contract transactions
112112
# transaction-debug-mode: false
113-
## bootstrap node using postage snapshot from the network
114-
# use-postage-snapshot: false
115113
## log verbosity level 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=trace
116114
# verbosity: info
117115
## maximum node warmup duration; proceeds when stable or after this time

0 commit comments

Comments
 (0)