bump libp2p and increase bootstrap timeout

This commit is contained in:
Dmitriy Ryajov 2020-02-21 12:03:19 -06:00
parent bd194da3d1
commit 08915ed597
3 changed files with 2 additions and 6 deletions

View File

@ -228,7 +228,7 @@ when networkBackend in [libp2p, libp2pDaemon]:
await node.start()
proc checkIfConnectedToBootstrapNode {.async.} =
await sleepAsync(10.seconds)
await sleepAsync(30.seconds)
if bootstrapEnrs.len > 0 and libp2p_successful_dials.value == 0:
fatal "Failed to connect to any bootstrap node. Quitting", bootstrapEnrs
quit 1

View File

@ -192,10 +192,6 @@ proc dialPeer*(node: Eth2Node, peerInfo: PeerInfo) {.async.} =
debug "Initializing connection"
await initializeConnection(peer)
# TODO: This should happen automatically in the future in nim-libp2p
debug "Subscribing to pubsub"
await peer.network.switch.subscribeToPeer(peer.info)
inc libp2p_successful_dials
debug "Network handshakes completed"

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit cb156f3260d35c49b0039ee73c623cdf95658888
Subproject commit 6a7f9f058c04ecdfd26e5dbfd8df88221b8511e7