-
Notifications
You must be signed in to change notification settings - Fork 162
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
Check in static analysis for removals from Keys map #915
Comments
@eagr want this one? |
does that sound right? and which is the target branch for dev now? |
that sounds right to me (cc @gregzaitsev), and yes it's |
anything else? @sam0x17 maybe something slightly more involved that could help me learn more about the project? :) |
if you @ me on the OTF discord would love to talk further :) same as my gh username |
Check in static analysis that we never remove from
Keys
unless we have matching insert at the same function that inserts with the same map key like inreplace_neuron
:If we remove from
Keys
, epoch function is going to break because it relies on neuron IDs being consecutive.Note: Currently we don't have such removals anywhere but
replace_neuron
function, so we can limit such replacements that useKeys::<T>::remove
to only be present inreplace_neuron
.The text was updated successfully, but these errors were encountered: