-
Notifications
You must be signed in to change notification settings - Fork 4
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
SHARD-1128: support removing NGTs thru single node's debug endpoint by using gossip #353
base: dev
Are you sure you want to change the base?
Conversation
reminder for myself: need to make this rotation safe |
const devPublicKeys = getDevPublicKeys() // This should return list of public keys | ||
const requestSig = reqParamsDropNGT.sig | ||
|
||
if (reqParamsDropNGT.owner !== '') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like logic in this condition and loop below is exactly the same... if so, could you move this in a method instead of duplicating the logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after looking at the code closer, I remembered that theyre not actually exactly the same. There's a small difference. if you want, I can refactor it to make it more compact and avoid code duplication which wont be hard, but it is not as simple as putting it in a separate function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also dont like the code duplication, but because of the way the logic needed to be implemented, it was the simplest way
No description provided.