Skip to content

Commit

Permalink
Tweak hashcat timeout settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mzukowski-reef committed May 24, 2024
1 parent d4ca4d2 commit 1361e61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion validator/app/src/compute_horde_validator/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ def wrapped(*args, **kwargs):
# non integer number - like 4.5 (all hordes smaller than 5 will get 0 weights)
HORDE_SCORE_CENTRAL_SIZE_PARAM = 1

DEBUG_WEIGHTS_VERSION = env.int('DEBUG_WEIGHTS_VERSION', default=None)
DEBUG_WEIGHTS_VERSION = env.int("DEBUG_WEIGHTS_VERSION", default=None)


def BITTENSOR_WALLET() -> bittensor.wallet:
if not BITTENSOR_WALLET_NAME or not BITTENSOR_WALLET_HOTKEY_NAME:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def __str__(self) -> str:
Algorithm.SHA512: JobParams(timeout=45, num_letters=5, num_digits=0, num_hashes=1),
},
1: {
Algorithm.SHA256: JobParams(timeout=90, num_letters=6, num_digits=0, num_hashes=500),
Algorithm.SHA384: JobParams(timeout=90, num_letters=5, num_digits=1, num_hashes=500),
Algorithm.SHA512: JobParams(timeout=90, num_letters=5, num_digits=1, num_hashes=500),
Algorithm.SHA256: JobParams(timeout=53, num_letters=6, num_digits=0, num_hashes=500),
Algorithm.SHA384: JobParams(timeout=53, num_letters=5, num_digits=1, num_hashes=500),
Algorithm.SHA512: JobParams(timeout=53, num_letters=5, num_digits=1, num_hashes=500),
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def generate(

@property
def timeout_seconds(self) -> int:
return sum([p.timeout for p in self.params])
return max([p.timeout for p in self.params])

def hash_masks(self) -> list[str]:
return ["?1" * params.num_letters + "?d" * params.num_digits for params in self.params]
Expand Down

0 comments on commit 1361e61

Please sign in to comment.