Bump libp2p (#3438)

This commit is contained in:
Tanguy 2022-02-25 13:22:48 +01:00 committed by GitHub
parent c29aa9d846
commit 1bfbcc48b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1900,7 +1900,7 @@ proc createEth2Node*(rng: ref BrHmacDrbgContext,
let altairPrefix = "/eth2/" & $forkDigests.altair let altairPrefix = "/eth2/" & $forkDigests.altair
func msgIdProvider(m: messages.Message): seq[byte] = func msgIdProvider(m: messages.Message): Result[seq[byte], ValidationResult] =
template topic: untyped = template topic: untyped =
if m.topicIDs.len > 0: m.topicIDs[0] else: "" if m.topicIDs.len > 0: m.topicIDs[0] else: ""
@ -1908,9 +1908,9 @@ proc createEth2Node*(rng: ref BrHmacDrbgContext,
# This doesn't have to be a tight bound, just enough to avoid denial of # This doesn't have to be a tight bound, just enough to avoid denial of
# service attacks. # service attacks.
let decoded = snappy.decode(m.data, maxGossipMaxSize()) let decoded = snappy.decode(m.data, maxGossipMaxSize())
gossipId(decoded, altairPrefix, topic, true) ok(gossipId(decoded, altairPrefix, topic, true))
except CatchableError: except CatchableError:
gossipId(m.data, altairPrefix, topic, false) ok(gossipId(m.data, altairPrefix, topic, false))
let let
params = GossipSubParams( params = GossipSubParams(

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit dffe4bed4541dee2645629729a245e7607d716ad Subproject commit cba3ca3c3e7bb0ffa8d91aa7c3115a90eb17712a