diff --git a/commune/vali/vali.py b/commune/vali/vali.py index 968c9895a..3284f4a78 100644 --- a/commune/vali/vali.py +++ b/commune/vali/vali.py @@ -143,7 +143,6 @@ def run_epoch(cls, network='local', **kwargs): - def epoch(self, batch_size = None, network=None, **kwargs): self.epochs += 1 @@ -470,7 +469,7 @@ def leaderboard(self, 'staleness', 'latency'], path = 'cache/module_infos', - max_age = 3600, + max_age = None, min_weight = 0, network = None, ascending = False, diff --git a/subnet/subnet.py b/subnet/subnet.py index 02987cfb2..8bb12e60f 100644 --- a/subnet/subnet.py +++ b/subnet/subnet.py @@ -14,12 +14,12 @@ def score_module(self, module): @classmethod - def test(cls, n=3, sleep_time=5): + def test(cls, n=3, sleep_time=4): test_vali = 'subnet.vali::test' test_miners = [f'subnet.miner::test_{i}' for i in range(n)] for miner in test_miners: c.serve(miner) - c.serve(test_vali, kwargs={'network': 'local', 'search': 'miner::test_'}) + c.serve(test_vali, kwargs={'network': 'local', 'search': 'miner::test_', 'min_update_interval': 1}) c.print('Sleeping for 3 seconds') c.sleep(sleep_time)