Bump libp2p (#3207)

This commit is contained in:
Tanguy 2021-12-17 12:39:24 +01:00 committed by GitHub
parent 72658d42d2
commit 4a72def1d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,6 @@ type
wantedPeers*: int
peerPool*: PeerPool[Peer, PeerID]
protocolStates*: seq[RootRef]
libp2pTransportLoops*: seq[Future[void]]
metadata*: altair.MetaData
connectTimeout*: chronos.Duration
seenThreshold*: chronos.Duration
@ -1397,7 +1396,7 @@ proc startListening*(node: Eth2Node) {.async.} =
quit 1
try:
node.libp2pTransportLoops = await node.switch.start()
await node.switch.start()
except CatchableError:
fatal "Failed to start LibP2P transport. TCP port may be already in use"
quit 1
@ -1872,6 +1871,7 @@ proc createEth2Node*(rng: ref BrHmacDrbgContext,
params = GossipSubParams(
explicit: true,
pruneBackoff: 1.minutes,
unsubscribeBackoff: 10.seconds,
floodPublish: true,
gossipFactor: 0.05,
d: 8,

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit 98184d9dfdd48f0d4ae9eb0c8d2995434293a35d
Subproject commit 123bf290c3ad951429dd3b9bbab71bed6b55a53f