Skip to content
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

Fixes issue with --neuron.no_set_weights #1020

Conversation

camfairchild
Copy link
Collaborator

This PR addresses #1019

Currently, the metagraph sync is executed every time the if-statement on line 457 evaluates as true.
if current_block - last_set_block > blocks_per_set_weights:
However, last_set_block is never updated when config.neuron.no_set_weights is true.
This PR moves last_set_block = current_block outside the check for no_set_weights, fixing the bug

@camfairchild camfairchild added bug Something isn't working release/3.6.0 labels Dec 1, 2022
@camfairchild camfairchild merged commit 704298c into nobunaga Dec 2, 2022
@camfairchild camfairchild deleted the fix/1019-serving-with-neuronno_set_weights-calls-metagraphsync-every-minute-or-two branch December 2, 2022 20:20
@eduardogr eduardogr mentioned this pull request Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release/3.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants