Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
e386677
refactor: replace full-node flag with explicit node-mode config
martinconic Apr 9, 2026
b58c43a
fix: restore legacy mode detection in resolveNodeMode
martinconic Apr 14, 2026
9d736a0
test: add table-driven tests for resolveNodeMode
martinconic Apr 22, 2026
7e68799
fix: tighten node-mode validation to prevent silent upgrade regressions
martinconic Apr 30, 2026
6abfcc3
Merge branch 'master' into refactor/node-mode-config
martinconic May 19, 2026
5c691ce
Merge branch 'master' into refactor/node-mode-config
martinconic May 21, 2026
fdf799c
Merge branch 'master' into refactor/node-mode-config
martinconic May 28, 2026
479c759
fix(node-mode): keep legacy --full-node configs starting after upgrade
martinconic Jun 3, 2026
6a0c78e
Merge remote-tracking branch 'origin/master' into refactor/node-mode-…
martinconic Jul 13, 2026
98be0b4
Merge remote-tracking branch 'origin/master' into refactor/node-mode-…
martinconic Aug 27, 2026
ebc5f4a
test(cmd): add edge-case and precedence tests for resolveNodeMode
martinconic Aug 27, 2026
8b061de
fix(cmd): reject storage incentives in light and ultra-light modes
martinconic Sep 2, 2026
5ef43da
refactor(cmd): resolve node-mode in two regimes
martinconic Sep 3, 2026
1bf0f0c
fix(packaging): pass BEE_NODE_MODE through docker compose and refresh…
martinconic Sep 3, 2026
d8086ba
ci: point Beekeeper job at the refactor/node-mode-two-regimes compani…
martinconic Sep 3, 2026
e00782d
fix(cmd): preserve flag defaults and apply mode overrides when node-m…
martinconic Sep 11, 2026
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: 1 addition & 1 deletion .github/workflows/beekeeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:
SETUP_CONTRACT_IMAGE: "ethersphere/bee-localchain"
SETUP_CONTRACT_IMAGE_TAG: "0.9.4"
BEELOCAL_BRANCH: "main"
BEEKEEPER_BRANCH: "master"
BEEKEEPER_BRANCH: "refactor/node-mode-two-regimes"
BEEKEEPER_METRICS_ENABLED: false
REACHABILITY_OVERRIDE_PUBLIC: true
BATCHFACTOR_OVERRIDE_PUBLIC: 2
Expand Down
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ linters:
- linters:
- staticcheck
text: "SA5008: malformed `json` tag: invalid trailing ',' character"
- linters:
- staticcheck
path: cmd/bee/cmd
text: "(this comparison is always true|never returns a nil interface value|the lhs of the comparison)"
paths:
- third_party$
- builtin$
Expand Down
9 changes: 7 additions & 2 deletions cmd/bee/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ const (
optionNameBzzTokenAddress = "bzz-token-address"
optionNameSwapFactoryAddress = "swap-factory-address"
optionNameSwapInitialDeposit = "swap-initial-deposit"
optionNameNodeMode = "node-mode"
optionNameSwapEnable = "swap-enable"
optionNameChequebookEnable = "chequebook-enable"
optionNameChequebookVerification = "chequebook-verification"
optionNameChequebookMinBalance = "chequebook-min-balance"
optionNameFullNode = "full-node"
optionNameFullNode = "full-node" // Deprecated: use node-mode instead.
optionNameLightNodeLimit = "light-node-limit"
optionNamePostageContractAddress = "postage-stamp-address"
optionNamePostageContractStartBlock = "postage-stamp-start-block"
Expand Down Expand Up @@ -357,11 +358,15 @@ func (c *command) setAllFlags(cmd *cobra.Command) {
cmd.Flags().String(optionNameSwapFactoryAddress, "", "swap factory addresses")
cmd.Flags().String(optionNameBzzTokenAddress, "", "bzz token contract address")
cmd.Flags().String(optionNameSwapInitialDeposit, "0", "initial deposit if deploying a new chequebook")
cmd.Flags().String(optionNameNodeMode, "", "node operational mode: full, light, or ultra-light (unset: inferred from deprecated full-node and blockchain-rpc-endpoint)")
cmd.Flags().Bool(optionNameSwapEnable, false, "enable swap")
cmd.Flags().Bool(optionNameChequebookEnable, true, "enable chequebook")
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().Bool(optionNameFullNode, false, "cause the node to start in full mode (deprecated: use --node-mode=full)")
if err := cmd.Flags().MarkDeprecated(optionNameFullNode, "use --node-mode=full instead"); err != nil {
panic(err)
}
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")
Expand Down
Loading
Loading