Add chainId to dedup messages (#2737)

* ChainId send through on sensitive messages
This commit is contained in:
Owen Schwartz
2026-03-29 12:08:29 -07:00
committed by GitHub
parent 6d7a19b0a0
commit bdc45887f9
4 changed files with 13 additions and 24 deletions

View File

@@ -33,7 +33,7 @@ export const handleNewtPingRequestMessage: MessageHandler = async (context) => {
return;
}
const { noCloud } = message.data;
const { noCloud, chainId } = message.data;
const exitNodesList = await listExitNodes(
site.orgId,
@@ -98,7 +98,8 @@ export const handleNewtPingRequestMessage: MessageHandler = async (context) => {
message: {
type: "newt/ping/exitNodes",
data: {
exitNodes: filteredExitNodes
exitNodes: filteredExitNodes,
chainId: chainId
}
},
broadcast: false, // Send to all clients