-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "Remove unnecessary node lists in NodeList module to improve performance" #23
Conversation
Issue reopened: BLUE-56 Refactor maintaining nodelist in the archivers. |
@@ -129,16 +135,18 @@ | |||
break | |||
} | |||
/* eslint-disable security/detect-object-injection */ | |||
byPublicKey.set(node.publicKey, node) | |||
byPublicKey[node.publicKey] = node |
Check failure
Code scanning / CodeQL
Remote property injection High
user-provided value
A property name to write to depends on a
user-provided value
if (entry) { | ||
entry.id = node.id | ||
byId.set(node.id, node.publicKey) | ||
publicKeyToId[node.publicKey] = node.id |
Check failure
Code scanning / CodeQL
Remote property injection High
user-provided value
A property name to write to depends on a
user-provided value
if (entry) { | ||
entry.id = node.id | ||
byId.set(node.id, node.publicKey) | ||
publicKeyToId[node.publicKey] = node.id | ||
byId[node.id] = node |
Check failure
Code scanning / CodeQL
Remote property injection High
user-provided value
@@ -166,16 +176,18 @@ | |||
break | |||
} | |||
|
|||
byPublicKey.set(node.publicKey, node) | |||
byPublicKey[node.publicKey] = node |
Check failure
Code scanning / CodeQL
Remote property injection High
user-provided value
if (entry) { | ||
entry.id = node.id | ||
byId.set(node.id, node.publicKey) | ||
publicKeyToId[node.publicKey] = node.id |
Check failure
Code scanning / CodeQL
Remote property injection High
user-provided value
if (entry) { | ||
entry.id = node.id | ||
byId.set(node.id, node.publicKey) | ||
publicKeyToId[node.publicKey] = node.id | ||
byId[node.id] = node |
Check failure
Code scanning / CodeQL
Remote property injection High
user-provided value
delete byPublicKey[key] | ||
const id = publicKeyToId[key] | ||
activeListByIdSorted = activeListByIdSorted.filter((node) => node.id !== id) | ||
delete byId[id] |
Check failure
Code scanning / CodeQL
Remote property injection High
Reverts #16