diff --git a/beacon_chain/networking/eth2_network.nim b/beacon_chain/networking/eth2_network.nim index 64728e571..48f7ff13e 100644 --- a/beacon_chain/networking/eth2_network.nim +++ b/beacon_chain/networking/eth2_network.nim @@ -2295,14 +2295,11 @@ proc createEth2Node*(rng: ref HmacDrbgContext, let phase0Prefix = "/eth2/" & $forkDigests.phase0 func msgIdProvider(m: messages.Message): Result[seq[byte], ValidationResult] = - template topic: untyped = - if m.topicIds.len > 0: m.topicIds[0] else: "" - try: # This doesn't have to be a tight bound, just enough to avoid denial of # service attacks. let decoded = snappy.decode(m.data, static(GOSSIP_MAX_SIZE.uint32)) - ok(gossipId(decoded, phase0Prefix, topic)) + ok(gossipId(decoded, phase0Prefix, m.topic)) except CatchableError: err(ValidationResult.Reject) diff --git a/vendor/nim-libp2p b/vendor/nim-libp2p index 28609597d..458b0885d 160000 --- a/vendor/nim-libp2p +++ b/vendor/nim-libp2p @@ -1 +1 @@ -Subproject commit 28609597d104a9be880ed5e1648e1ce18ca9dc38 +Subproject commit 458b0885dd276afeb81b9a6d431dde79e99f2b01