mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-22 11:18:25 +00:00
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…
x
Reference in New Issue
Block a user