Skip to content

Commit e6f2f14

Browse files
authored
Merge branch 'staging' into fix/2188-configure_uvicorn_event_loop
2 parents 7678f7d + c8a570a commit e6f2f14

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

bittensor/core/metagraph.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -773,14 +773,6 @@ def _set_metagraph_attributes(self, block: int):
773773
[neuron.validator_trust for neuron in self.neurons],
774774
dtype=self._dtype_registry["float32"],
775775
)
776-
self.total_stake = self._create_tensor(
777-
[neuron.total_stake.tao for neuron in self.neurons],
778-
dtype=self._dtype_registry["float32"],
779-
)
780-
self.stake = self._create_tensor(
781-
[neuron.stake.tao for neuron in self.neurons],
782-
dtype=self._dtype_registry["float32"],
783-
)
784776
self.axons = [n.axon_info for n in self.neurons]
785777

786778
def save(self, root_dir: Optional[list[str]] = None) -> "MetagraphMixin":
@@ -1634,7 +1626,7 @@ def __init__(
16341626
subtensor: Optional["Subtensor"] = None,
16351627
):
16361628
super().__init__(netuid, network, lite, sync, subtensor)
1637-
if sync:
1629+
if self.should_sync:
16381630
self.sync()
16391631

16401632
def sync(

0 commit comments

Comments
 (0)