From 908fd05bbb979935a33910446fbf544e4100fb2c Mon Sep 17 00:00:00 2001 From: ScottyPoi Date: Thu, 31 Oct 2024 10:19:00 -0600 Subject: [PATCH 1/3] history: fix uTP dstId value --- packages/portalnetwork/src/networks/history/history.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/portalnetwork/src/networks/history/history.ts b/packages/portalnetwork/src/networks/history/history.ts index ba1a8225f..143a08348 100644 --- a/packages/portalnetwork/src/networks/history/history.ts +++ b/packages/portalnetwork/src/networks/history/history.ts @@ -234,7 +234,7 @@ export class HistoryNetwork extends BaseNetwork { void this.handleNewRequest({ networkId: this.networkId, contentKeys: [key], - peerId: dstId, + peerId: enr.nodeId, connectionId: id, requestCode: RequestCode.FINDCONTENT_READ, }) From bbfa21bab4a70ebea07a503d3dc22e6b61664731 Mon Sep 17 00:00:00 2001 From: ScottyPoi Date: Thu, 31 Oct 2024 10:34:46 -0600 Subject: [PATCH 2/3] beacon: uTP dstId fix --- packages/portalnetwork/src/networks/beacon/beacon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/portalnetwork/src/networks/beacon/beacon.ts b/packages/portalnetwork/src/networks/beacon/beacon.ts index bf0530c46..041758b2e 100644 --- a/packages/portalnetwork/src/networks/beacon/beacon.ts +++ b/packages/portalnetwork/src/networks/beacon/beacon.ts @@ -467,7 +467,7 @@ export class BeaconLightClientNetwork extends BaseNetwork { void this.handleNewRequest({ networkId: this.networkId, contentKeys: [key], - peerId: dstId, + peerId: enr.nodeId, connectionId: id, requestCode: RequestCode.FINDCONTENT_READ, }) From 1484e826c3662037de7d792b6819f0f8f1717ab5 Mon Sep 17 00:00:00 2001 From: ScottyPoi Date: Thu, 31 Oct 2024 10:34:54 -0600 Subject: [PATCH 3/3] state: uTP dstId fix --- packages/portalnetwork/src/networks/state/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/portalnetwork/src/networks/state/state.ts b/packages/portalnetwork/src/networks/state/state.ts index e00593f9d..c2da6cc3c 100644 --- a/packages/portalnetwork/src/networks/state/state.ts +++ b/packages/portalnetwork/src/networks/state/state.ts @@ -109,7 +109,7 @@ export class StateNetwork extends BaseNetwork { void this.handleNewRequest({ networkId: this.networkId, contentKeys: [key], - peerId: dstId, + peerId: enr.nodeId, connectionId: id, requestCode: RequestCode.FINDCONTENT_READ, })