File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -349,35 +349,14 @@ func (n *Node) Start(ctx context.Context) error {
349
349
350
350
n .CurrentSocket = socket
351
351
// Start the Node IP updater only if the PUBLIC_IP_PROVIDER is greater than 0.
352
- if n .Config .PubIPCheckInterval > 0 && n .allPortsConfigured () {
352
+ if n .Config .PubIPCheckInterval > 0 && n .Config . EnableV1 && n . Config . EnableV2 {
353
353
go n .checkRegisteredNodeIpOnChain (ctx )
354
354
go n .checkCurrentNodeIp (ctx )
355
355
}
356
356
357
357
return nil
358
358
}
359
359
360
- // allPortsConfigured checks if all the ports are configured in the config.
361
- func (n * Node ) allPortsConfigured () bool {
362
- if err := core .ValidatePort (n .Config .DispersalPort ); err != nil {
363
- return false
364
- }
365
-
366
- if err := core .ValidatePort (n .Config .V2DispersalPort ); err != nil {
367
- return false
368
- }
369
-
370
- if err := core .ValidatePort (n .Config .RetrievalPort ); err != nil {
371
- return false
372
- }
373
-
374
- if err := core .ValidatePort (n .Config .V2RetrievalPort ); err != nil {
375
- return false
376
- }
377
-
378
- return true
379
- }
380
-
381
360
// The expireLoop is a loop that is run once per configured second(s) while the node
382
361
// is running. It scans for expired batches and removes them from the local database.
383
362
func (n * Node ) expireLoop () {
You can’t perform that action at this time.
0 commit comments