Skip to content

Commit e077fed

Browse files
authored
Merge branch 'staging' into enhancement/add-retry-to-crv3
2 parents 79ea823 + c0daed8 commit e077fed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bittensor/core/async_subtensor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,9 +1596,11 @@ async def set_weights(
15961596
15971597
This function is crucial in shaping the network's collective intelligence, where each neuron's learning and contribution are influenced by the weights it sets towards others【81†source】.
15981598
"""
1599-
if self.commit_reveal_enabled(netuid=netuid) is True:
1599+
if (await self.commit_reveal_enabled(netuid=netuid)) is True:
16001600
# go with `commit reveal v3` extrinsic
1601-
raise NotImplemented("Not implemented yet for AsyncSubtensor. Coming soon.")
1601+
raise NotImplementedError(
1602+
"Not implemented yet for AsyncSubtensor. Coming soon."
1603+
)
16021604
else:
16031605
# go with classic `set weights extrinsic`
16041606
uid = await self.get_uid_for_hotkey_on_subnet(

0 commit comments

Comments
 (0)