diff --git a/bittensor/utils/__init__.py b/bittensor/utils/__init__.py index 9526ad41fc..8482d5a336 100644 --- a/bittensor/utils/__init__.py +++ b/bittensor/utils/__init__.py @@ -515,7 +515,6 @@ def solve_for_difficulty_fast( subtensor, wallet, output_in_place: bool = True, logger.start() solution = None - hash_rate = 0 # EWMA hash_rate (H/s) hash_rates = [0] * n_samples # The last n true hash_rates weights = [alpha_ ** i for i in range(n_samples)] # weights decay by alpha @@ -746,6 +745,7 @@ def update_curr_block(block_number: int, block_bytes: bytes, diff: int, lock: mu hash_rates = [0] * n_samples # The last n true hash_rates weights = [alpha_ ** i for i in range(n_samples)] # weights decay by alpha + solution = None while not wallet.is_registered(subtensor): # Wait until a solver finds a solution try: