Bump libp2p (#3438)
This commit is contained in:
parent
c29aa9d846
commit
1bfbcc48b6
|
@ -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(
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit dffe4bed4541dee2645629729a245e7607d716ad
|
Subproject commit cba3ca3c3e7bb0ffa8d91aa7c3115a90eb17712a
|
Loading…
Reference in New Issue