Enable discovery service regardless bootnodes are provided
This commit is contained in:
parent
34e6149f89
commit
5b60c3b45f
|
@ -100,10 +100,9 @@ proc connectToNetwork(node: BeaconNode) {.async.} =
|
|||
|
||||
if bootstrapNodes.len > 0:
|
||||
info "Connecting to bootstrap nodes", bootstrapNodes
|
||||
await node.network.connectToNetwork(bootstrapNodes)
|
||||
else:
|
||||
info "Waiting for connections"
|
||||
node.network.startListening()
|
||||
await node.network.connectToNetwork(bootstrapNodes)
|
||||
|
||||
proc sync*(node: BeaconNode): Future[bool] {.async.} =
|
||||
if node.beaconState.slotDistanceFromNow() > WEAK_SUBJECTVITY_PERIOD.int64:
|
||||
|
|
Loading…
Reference in New Issue