Skip to content

Commit

Permalink
uTP: remove discv5 routing table check
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottyPoi committed Jan 17, 2025
1 parent 4c50c89 commit 100afb0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/portalnetwork/src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,6 @@ export class PortalNetwork extends EventEmitter<PortalNetworkEvents> {
) => {
this.metrics?.totalBytesReceived.inc(message.request.length)
if (bytesToHex(message.protocol) === NetworkId.UTPNetwork) {
if (!this.discv5.findEnr(nodeAddress.nodeId)) {
this.logger.extend('TalkReq').extend('error')(`Received uTP packet from unknown node: ${nodeAddress.nodeId}. Adding to blacklist.`)
this.addToBlackList(nodeAddress.socketAddr)
return
}
await this.handleUTP(nodeAddress, message, message.request)
return
}
Expand Down

0 comments on commit 100afb0

Please sign in to comment.