Skip to content

Commit

Permalink
feat: bee start starts the node in the ultra-light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Sep 20, 2023
1 parent 84b6eaa commit 44bf5a5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func NewBee(
}
}

if o.SwapEnable {
if o.SwapEnable && chainEnabled {
chequebookFactory, err = InitChequebookFactory(
logger,
chainBackend,
Expand All @@ -525,7 +525,7 @@ func NewBee(

erc20Service = erc20.New(transactionService, erc20Address)

if o.ChequebookEnable && chainEnabled {
if o.ChequebookEnable {
chequebookService, err = InitChequebookService(
ctx,
logger,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 44bf5a5

Please sign in to comment.