opentensor / bittensor-subnet-template

Template Design for a Bittensor subnetwork
MIT License
65 stars 112 forks source link

Fix wrong log msg for set_weights #75

Closed mutexlocker closed 6 months ago

mutexlocker commented 6 months ago

This pull request fixes the bug where the validator outputs "set_weights failed" wrongfully even though the set_weights was successful. This is due to the fact that subtensor.set_weights return a tuple of (success, message) but in the code only the message is parsed and used as measure of success on writing weights. image