Skip to content

Fixes issue with --neuron.no_set_weights#1020

Merged
camfairchild merged 1 commit intonobunagafrom
fix/1019-serving-with-neuronno_set_weights-calls-metagraphsync-every-minute-or-two
Dec 2, 2022
Merged

Fixes issue with --neuron.no_set_weights#1020
camfairchild merged 1 commit intonobunagafrom
fix/1019-serving-with-neuronno_set_weights-calls-metagraphsync-every-minute-or-two

Conversation

@camfairchild
Copy link
Contributor

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants