Skip to content

Commit

Permalink
validator update for crypto_type->key_type
Browse files Browse the repository at this point in the history
  • Loading branch information
latentvector committed Sep 16, 2024
1 parent 360c825 commit 6409f85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commune/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ def __init__(self, *args, **kwargs):

@property
def key(self):
assert hasattr(self, '_key'), 'Key not set'
if not hasattr(self, '_key'):
if not hasattr(self, 'server_name') or self.server_name == None:
self.server_name = self.module_name()
self._key = c.get_key(self.server_name, create_if_not_exists=True)

return self._key

@key.setter
Expand Down
2 changes: 1 addition & 1 deletion commune/vali.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def check_info(self, info:dict) -> bool:

def eval(self,
module:str,
return_keys= ['w', 'latency', 'key', 'timestamp', 'name', 'staleness', 'crypto_type'],
return_keys= ['w', 'latency', 'key', 'timestamp', 'name', 'staleness', 'key_type'],
**kwargs):
"""
The following evaluates a module sver
Expand Down

0 comments on commit 6409f85

Please sign in to comment.